Skip to content

Commit

Permalink
lib: remove unnecessary assignment of exports
Browse files Browse the repository at this point in the history
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: #20143
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Jackson Tian <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
  • Loading branch information
danbev authored and apapirovski committed Apr 22, 2018
1 parent 3cb8e64 commit f31fc93
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/internal/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ function isStackOverflowError(err) {
err.message === maxStack_ErrorMessage;
}

module.exports = exports = {
module.exports = {
dnsException,
errnoException,
exceptionWithHostPort,
Expand Down
2 changes: 1 addition & 1 deletion lib/os.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function networkInterfaces() {
}, {});
}

module.exports = exports = {
module.exports = {
arch,
cpus,
endianness,
Expand Down
2 changes: 1 addition & 1 deletion lib/v8.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ function deserialize(buffer) {
return der.readValue();
}

module.exports = exports = {
module.exports = {
cachedDataVersionTag,
getHeapStatistics,
getHeapSpaceStatistics,
Expand Down

0 comments on commit f31fc93

Please sign in to comment.