lib: remove unnecessary assignment of exports
This commit removes the assignment of exports since it is not used in these files and there is no harm re-assigning module.exports. PR-URL: https://github.com/nodejs/node/pull/20143 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Jackson Tian <shyvo1987@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
This commit is contained in:
parent
3cb8e64e85
commit
f31fc9398d
@ -687,7 +687,7 @@ function isStackOverflowError(err) {
|
|||||||
err.message === maxStack_ErrorMessage;
|
err.message === maxStack_ErrorMessage;
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = exports = {
|
module.exports = {
|
||||||
dnsException,
|
dnsException,
|
||||||
errnoException,
|
errnoException,
|
||||||
exceptionWithHostPort,
|
exceptionWithHostPort,
|
||||||
|
@ -159,7 +159,7 @@ function networkInterfaces() {
|
|||||||
}, {});
|
}, {});
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = exports = {
|
module.exports = {
|
||||||
arch,
|
arch,
|
||||||
cpus,
|
cpus,
|
||||||
endianness,
|
endianness,
|
||||||
|
@ -213,7 +213,7 @@ function deserialize(buffer) {
|
|||||||
return der.readValue();
|
return der.readValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = exports = {
|
module.exports = {
|
||||||
cachedDataVersionTag,
|
cachedDataVersionTag,
|
||||||
getHeapStatistics,
|
getHeapStatistics,
|
||||||
getHeapSpaceStatistics,
|
getHeapSpaceStatistics,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user