Skip to content

Commit f31fc93

Browse files
danbevapapirovski
authored andcommitted
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: #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>
1 parent 3cb8e64 commit f31fc93

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/internal/errors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ function isStackOverflowError(err) {
687687
err.message === maxStack_ErrorMessage;
688688
}
689689

690-
module.exports = exports = {
690+
module.exports = {
691691
dnsException,
692692
errnoException,
693693
exceptionWithHostPort,

lib/os.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ function networkInterfaces() {
159159
}, {});
160160
}
161161

162-
module.exports = exports = {
162+
module.exports = {
163163
arch,
164164
cpus,
165165
endianness,

lib/v8.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ function deserialize(buffer) {
213213
return der.readValue();
214214
}
215215

216-
module.exports = exports = {
216+
module.exports = {
217217
cachedDataVersionTag,
218218
getHeapStatistics,
219219
getHeapSpaceStatistics,

0 commit comments

Comments
 (0)