Skip to content

Commit bde1a7e

Browse files
JacksonTianMylesBorins
authored andcommitted
lib: remove unnecessary parameter for assertCrypto()
The `exports` parameter is unnecessary. PR-URL: #10834 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Brian White <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Sam Roberts <[email protected]>
1 parent b7c5295 commit bde1a7e

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

lib/_tls_legacy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
require('internal/util').assertCrypto(exports);
3+
require('internal/util').assertCrypto();
44

55
const assert = require('assert');
66
const EventEmitter = require('events');

lib/_tls_wrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
require('internal/util').assertCrypto(exports);
3+
require('internal/util').assertCrypto();
44

55
const assert = require('assert');
66
const crypto = require('crypto');

lib/crypto.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
'use strict';
55

66
const internalUtil = require('internal/util');
7-
internalUtil.assertCrypto(exports);
7+
internalUtil.assertCrypto();
88

99
exports.DEFAULT_ENCODING = 'buffer';
1010

lib/https.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
require('internal/util').assertCrypto(exports);
3+
require('internal/util').assertCrypto();
44

55
const tls = require('tls');
66
const url = require('url');

lib/internal/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ exports.objectToString = function objectToString(o) {
101101
};
102102

103103
const noCrypto = !process.versions.openssl;
104-
exports.assertCrypto = function(exports) {
104+
exports.assertCrypto = function() {
105105
if (noCrypto)
106106
throw new Error('Node.js is not compiled with openssl crypto support');
107107
};

lib/tls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
const internalUtil = require('internal/util');
4-
internalUtil.assertCrypto(exports);
4+
internalUtil.assertCrypto();
55

66
const net = require('net');
77
const url = require('url');

0 commit comments

Comments
 (0)