diff options
author | Rich Trott <rtrott@gmail.com> | 2017-11-22 12:47:50 -0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2017-11-30 23:24:44 -0800 |
commit | 929f343bb3c2f7847711fed7ddb79ec5cf97f9b7 (patch) | |
tree | 03fef5f28fdcee79347fc968beb85c95e46cf08f /doc | |
parent | 7850112c339ad1eac437bb22d562ea00a98be04a (diff) | |
download | node-new-929f343bb3c2f7847711fed7ddb79ec5cf97f9b7.tar.gz |
doc,test: remove unnecessary await with return instances
Remove unnecessary `await` in combination with `return` in preparation
for enabling lint rule.
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/util.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/util.md b/doc/api/util.md index 6ec2f391be..8c73242a5e 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -31,7 +31,7 @@ For example: const util = require('util'); async function fn() { - return await Promise.resolve('hello world'); + return 'hello world'; } const callbackFunction = util.callbackify(fn); |