Skip to content

Commit a3abba0

Browse files
JacksonTianitaloacasas
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 a408ba6 commit a3abba0

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
@@ -97,7 +97,7 @@ exports.objectToString = function objectToString(o) {
9797
};
9898

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

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)