mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
tools: enable no-useless-return eslint rule
PR-URL: https://github.com/nodejs/node/pull/12577 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
This commit is contained in:
1 parent
0084260448
commit
7a4d383c75
6 files changed
+5
-7
No files matched your search
@@ -64,6 +64,7 @@ Errors that occur within _Asynchronous APIs_ may be reported in multiple ways:
|
||||
argument is not `null` and is an instance of `Error`, then an error occurred
|
||||
that should be handled.
|
||||
|
||||
<!-- eslint-disable no-useless-return -->
|
||||
```js
|
||||
const fs = require('fs');
|
||||
fs.readFile('a file that does not exist', (err, data) => {
|
||||
|
||||
Reference in new issue
Block a user