Skip to content

Commit 7da4656

Browse files
committed
fixup: mustCall
1 parent 4f1e2bc commit 7da4656

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/parallel/test-stream-writable-finish-destroyed.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ const { Writable } = require('stream');
55

66
{
77
const w = new Writable({
8-
write(chunk, encoding, cb) {
9-
w.on('close', () => {
8+
write: common.mustCall((chunk, encoding, cb) => {
9+
w.on('close', common.mustCall(() => {
1010
cb();
11-
});
12-
}
11+
}));
12+
})
1313
});
1414

1515
w.end('asd');
@@ -19,12 +19,12 @@ const { Writable } = require('stream');
1919

2020
{
2121
const w = new Writable({
22-
write(chunk, encoding, cb) {
23-
w.on('close', () => {
22+
write: common.mustCall((chunk, encoding, cb) => {
23+
w.on('close', common.mustCall(() => {
2424
cb();
2525
w.end();
26-
});
27-
}
26+
}));
27+
})
2828
});
2929

3030
w.on('finish', common.mustNotCall());

0 commit comments

Comments
 (0)