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;
|
||||
}
|
||||
|
||||
module.exports = exports = {
|
||||
module.exports = {
|
||||
dnsException,
|
||||
errnoException,
|
||||
exceptionWithHostPort,
|
||||
|
@ -159,7 +159,7 @@ function networkInterfaces() {
|
||||
}, {});
|
||||
}
|
||||
|
||||
module.exports = exports = {
|
||||
module.exports = {
|
||||
arch,
|
||||
cpus,
|
||||
endianness,
|
||||
|
Loading…
x
Reference in New Issue
Block a user