doc,test: remove unnecessary await with return instances · nodejs/node@2af1bf5 · GitHub
Skip to content

Commit 2af1bf5

Browse files
Trottgibfahn
authored andcommitted
doc,test: remove unnecessary await with return instances
Remove unnecessary `await` in combination with `return` in preparation for enabling lint rule. PR-URL: #17265 Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
1 parent dbae582 commit 2af1bf5

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

doc/api/util.md

Lines changed: 1 addition & 1 deletion

test/common/inspector-helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ class NodeInstance {
390390
console.log('[test]', 'Connecting to a child Node process');
391391
const response = await this.httpGet(null, '/json/list');
392392
const url = response[0]['webSocketDebuggerUrl'];
393-
return await this.wsHandshake(url);
393+
return this.wsHandshake(url);
394394
}
395395

396396
expectShutdown() {

test/parallel/test-util-callbackify.js

Lines changed: 5 additions & 5 deletions

0 commit comments

Comments
 (0)