Skip to content

Commit ee64ae0

Browse files
Trottrvagg
authored andcommitted
test: remove unused function arguments in async-hooks tests
Remove unused function arguments in two async-hooks tests. PR-URL: #24368 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
1 parent 5d67eec commit ee64ae0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/async-hooks/test-getaddrinforeqwrap.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const hooks = initHooks();
1414

1515
hooks.enable();
1616
dns.lookup('www.google.com', 4, common.mustCall(onlookup));
17-
function onlookup(err_, ip, family) {
17+
function onlookup() {
1818
// we don't care about the error here in order to allow
1919
// tests to run offline (lookup will fail in that case and the err be set);
2020

test/async-hooks/test-getnameinforeqwrap.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const hooks = initHooks();
1414

1515
hooks.enable();
1616
dns.lookupService('127.0.0.1', 80, common.mustCall(onlookupService));
17-
function onlookupService(err_, ip, family) {
17+
function onlookupService() {
1818
// we don't care about the error here in order to allow
1919
// tests to run offline (lookup will fail in that case and the err be set)
2020

0 commit comments

Comments
 (0)