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:
Daniel Bevenius authored and Anatoli Papirovski committed 2018-04-22 11:39:16 +02:00
1 parent 3cb8e64e85
commit f31fc9398d
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -687,7 +687,7 @@ function isStackOverflowError(err) {
err.message === maxStack_ErrorMessage;
}
module.exports = exports = {
module.exports = {
dnsException,
errnoException,
exceptionWithHostPort,
+1 -1
View File
@@ -159,7 +159,7 @@ function networkInterfaces() {
}, {});
}
module.exports = exports = {
module.exports = {
arch,
cpus,
endianness,
+1 -1
View File
@@ -213,7 +213,7 @@ function deserialize(buffer) {
return der.readValue();
}
module.exports = exports = {
module.exports = {
cachedDataVersionTag,
getHeapStatistics,
getHeapSpaceStatistics,