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 2018-04-19 10:45:25 +02:00 committed by Anatoli Papirovski
parent 3cb8e64e85
commit f31fc9398d
No known key found for this signature in database
GPG Key ID: 614E2E1ABEB4B2C0
3 changed files with 3 additions and 3 deletions

View File

@ -687,7 +687,7 @@ function isStackOverflowError(err) {
err.message === maxStack_ErrorMessage;
}
module.exports = exports = {
module.exports = {
dnsException,
errnoException,
exceptionWithHostPort,

View File

@ -159,7 +159,7 @@ function networkInterfaces() {
}, {});
}
module.exports = exports = {
module.exports = {
arch,
cpus,
endianness,

View File

@ -213,7 +213,7 @@ function deserialize(buffer) {
return der.readValue();
}
module.exports = exports = {
module.exports = {
cachedDataVersionTag,
getHeapStatistics,
getHeapSpaceStatistics,