summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2018-04-19 10:45:25 +0200
committerAnatoli Papirovski <apapirovski@mac.com>2018-04-22 11:39:16 +0200
commitf31fc9398d1da30aa219968caaac5bd4ca56e6f2 (patch)
tree84fe5d9f8bb1a51876d27305ac9392d392c45f9d
parent3cb8e64e85c4b50c1154994374e13cb34adc9dd5 (diff)
downloadandroid-node-v8-f31fc9398d1da30aa219968caaac5bd4ca56e6f2.tar.gz
android-node-v8-f31fc9398d1da30aa219968caaac5bd4ca56e6f2.tar.bz2
android-node-v8-f31fc9398d1da30aa219968caaac5bd4ca56e6f2.zip
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>
-rw-r--r--lib/internal/errors.js2
-rw-r--r--lib/os.js2
-rw-r--r--lib/v8.js2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/internal/errors.js b/lib/internal/errors.js
index 88c7f86eb9..09f58506c4 100644
--- a/lib/internal/errors.js
+++ b/lib/internal/errors.js
@@ -687,7 +687,7 @@ function isStackOverflowError(err) {
err.message === maxStack_ErrorMessage;
}
-module.exports = exports = {
+module.exports = {
dnsException,
errnoException,
exceptionWithHostPort,
diff --git a/lib/os.js b/lib/os.js
index 5c83dbfab7..08daa182e8 100644
--- a/lib/os.js
+++ b/lib/os.js
@@ -159,7 +159,7 @@ function networkInterfaces() {
}, {});
}
-module.exports = exports = {
+module.exports = {
arch,
cpus,
endianness,
diff --git a/lib/v8.js b/lib/v8.js
index cce77c5062..ed93b094ca 100644
--- a/lib/v8.js
+++ b/lib/v8.js
@@ -213,7 +213,7 @@ function deserialize(buffer) {
return der.readValue();
}
-module.exports = exports = {
+module.exports = {
cachedDataVersionTag,
getHeapStatistics,
getHeapSpaceStatistics,