From f31fc9398d1da30aa219968caaac5bd4ca56e6f2 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Thu, 19 Apr 2018 10:45:25 +0200 Subject: lib: remove unnecessary assignment of exports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: Jackson Tian Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Trivikram Kamat Reviewed-By: Tobias Nießen --- lib/internal/errors.js | 2 +- lib/os.js | 2 +- lib/v8.js | 2 +- 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, -- cgit v1.2.3