Skip to content

Commit

Permalink
test: remove unused parameters in function definition
Browse files Browse the repository at this point in the history
Remove unused parameters triggerAsyncId and resource from oninit
function in test-async-await.js.

PR-URL: #24268
Reviewed-By: Weijia Wang <starkwang@126.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
  • Loading branch information
prh1 authored and codebytere committed Jan 12, 2019
1 parent 817d871 commit d4fd76a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/async-hooks/test-async-await.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const hooks = initHooks({
});
hooks.enable();

function oninit(asyncId, type, triggerAsyncId, resource) {
function oninit(asyncId, type) {
if (type === 'PROMISE') {
promisesInitState.set(asyncId, 'inited');
}
Expand Down

0 comments on commit d4fd76a

Please sign in to comment.