Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3b6135f

Browse filesBrowse files
jkmdevcodebytere
authored andcommitted
test: use destructuring and remove unused arguments
Use destructuring consistently and remove unused function arguments in test-pipewrap.js PR-URL: #24375 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Weijia Wang <starkwang@126.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 8c81992 commit 3b6135f
Copy full SHA for 3b6135f

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎test/async-hooks/test-pipewrap.js‎

Copy file name to clipboardExpand all lines: test/async-hooks/test-pipewrap.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const assert = require('assert');
88
const tick = require('./tick');
99
const initHooks = require('./init-hooks');
1010
const { checkInvocations } = require('./hook-checks');
11-
const spawn = require('child_process').spawn;
11+
const { spawn } = require('child_process');
1212

1313
if (!common.isMainThread)
1414
common.skip('Worker bootstrapping works differently -> different async IDs');
@@ -45,7 +45,7 @@ checkInvocations(processwrap, { init: 1 },
4545
checkInvocations(x, { init: 1 }, 'pipe wrap when sleep.spawn was called');
4646
});
4747

48-
function onsleepExit(code) {
48+
function onsleepExit() {
4949
checkInvocations(processwrap, { init: 1, before: 1 },
5050
'processwrap while in onsleepExit callback');
5151
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.