From b34f766159c36c9ede7c76e2f285b6073dbcda86 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Thu, 19 Apr 2018 10:45:25 +0200 Subject: [PATCH] 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. --- 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 4823f0b65cb6ea..65f3f38d7be6a6 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 5c83dbfab7b6e3..08daa182e8b014 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 cce77c5062adf4..ed93b094ca7895 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,