Skip to content
Browse files

test: remove second arg from assert.ifError()

`test/parallel/test-fs-readfile.js` has a call to
`assert.ifError()` that receives two arguments.

There is no second argument used in `assert.ifError()`.
This PR removes this argument.

PR-URL: #22190
Reviewed-By: George Adams <>
Reviewed-By: Richard Lau <>
Reviewed-By: Colin Ihrig <>
Reviewed-By: Jon Moss <>
Reviewed-By: Ruben Bridgewater <>
Reviewed-By: Trivikram Kamat <>
Reviewed-By: Luigi Pinca <>
Reviewed-By: Rich Trott <>
Reviewed-By: James M Snell <>
  • Loading branch information...
mhamwala authored and jasnell committed Aug 8, 2018
1 parent 91e897a commit dcfd323c6be53c6ea812e5d98eee8f4e8d31dc57
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/parallel/test-fs-readfile.js
@@ -53,7 +53,7 @@ for (const e of fileInfo) {
for (const e of fileInfo) {
fs.readFile(, common.mustCall((err, buf) => {
console.log(`Validating readFile on file ${} of length ${e.len}`);
assert.ifError(err, 'An error occurred');
assert.deepStrictEqual(buf, e.contents, 'Incorrect file contents');

0 comments on commit dcfd323

Please sign in to comment.
You can’t perform that action at this time.