tools: enable no-else-return lint rule

Refs: https://github.com/nodejs/node/pull/32644
Refs: https://github.com/nodejs/node/pull/32662

PR-URL: https://github.com/nodejs/node/pull/32667
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
Luigi Pinca authored and Shelley Vohr committed 2020-05-16 12:52:06 -07:00
1 parent e53de96a89
commit 91193447fb
42 files changed
+161 -217

No files matched your search

+2 -4
View File
@@ -192,9 +192,8 @@ function sourceMapCacheToObject() {
if (ObjectKeys(obj).length === 0) {
return undefined;
} else {
return obj;
}
return obj;
}
// Since WeakMap can't be iterated over, we use Module._cache's
@@ -243,9 +242,8 @@ function findSourceMap(uri, error) {
}
if (sourceMap && sourceMap.data) {
return new SourceMap(sourceMap.data);
} else {
return undefined;
}
return undefined;
}
module.exports = {