From e96e3f9eb0610168b0b06977664c0e713571b066 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Mon, 18 Mar 2019 13:35:46 +0100 Subject: [PATCH] test: remove redundant common.mustCall MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All calls verify the cb is called, thus using `common.mustCall` is not required inside of this function. PR-URL: https://github.com/nodejs/node/pull/26738 Reviewed-By: Gus Caplan Reviewed-By: Matteo Collina Reviewed-By: Michaƫl Zasso Reviewed-By: Joyee Cheung --- test/parallel/test-fs-readfile-error.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-fs-readfile-error.js b/test/parallel/test-fs-readfile-error.js index 719c0061c4e39e..3b245058ff6f38 100644 --- a/test/parallel/test-fs-readfile-error.js +++ b/test/parallel/test-fs-readfile-error.js @@ -38,12 +38,12 @@ function test(env, cb) { const filename = fixtures.path('test-fs-readfile-error.js'); const execPath = `"${process.execPath}" "${filename}"`; const options = { env: Object.assign({}, process.env, env) }; - exec(execPath, options, common.mustCall((err, stdout, stderr) => { + exec(execPath, options, (err, stdout, stderr) => { assert(err); assert.strictEqual(stdout, ''); assert.notStrictEqual(stderr, ''); cb(String(stderr)); - })); + }); } test({ NODE_DEBUG: '' }, common.mustCall((data) => {