From 7c4178cb1158023519ccdad8207879b6983c1a9c Mon Sep 17 00:00:00 2001 From: angellovc Date: Sun, 19 Mar 2023 15:47:44 -0500 Subject: [PATCH] test: remove unused callback variables Unused variables were removed from stream-exception test. PR-URL: https://github.com/nodejs/node/pull/47167 Reviewed-By: Yagiz Nizipli Reviewed-By: Debadree Chatterjee Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig Reviewed-By: Daijiro Wachi --- test/parallel/test-wrap-js-stream-exceptions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-wrap-js-stream-exceptions.js b/test/parallel/test-wrap-js-stream-exceptions.js index 1b4d469a758d77..b0269bd1282a4c 100644 --- a/test/parallel/test-wrap-js-stream-exceptions.js +++ b/test/parallel/test-wrap-js-stream-exceptions.js @@ -11,7 +11,7 @@ process.once('uncaughtException', common.mustCall((err) => { const socket = new JSStreamWrap(new Duplex({ read: common.mustCall(), - write: common.mustCall((buffer, data, cb) => { + write: common.mustCall(() => { throw new Error('exception!'); }) }));