Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
  • Loading branch information
mhamwala committed Aug 8, 2018
commit 89e5892ca78d7eb72621f56f06fdb19468de7672
2 changes: 1 addition & 1 deletion test/parallel/test-fs-readfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ for (const e of fileInfo) {
for (const e of fileInfo) {
fs.readFile(e.name, common.mustCall((err, buf) => {
console.log(`Validating readFile on file ${e.name} of length ${e.len}`);
assert.ifError(err, 'An error occurred');
assert.ifError(err);
assert.deepStrictEqual(buf, e.contents, 'Incorrect file contents');
}));
}