mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
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:
1 parent
e53de96a89
commit
91193447fb
42 files changed
+161
-217
No files matched your search
@@ -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 = {
|
||||
|
||||
Reference in new issue
Block a user