Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a3abba0

Browse filesBrowse files
JacksonTianItalo A. Casas
authored andcommitted
lib: remove unnecessary parameter for assertCrypto()
The `exports` parameter is unnecessary. PR-URL: #10834 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sam Roberts <sam@strongloop.com>
1 parent a408ba6 commit a3abba0
Copy full SHA for a3abba0

File tree

Expand file treeCollapse file tree

6 files changed

+6
-6
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

6 files changed

+6
-6
lines changed
Open diff view settings
Collapse file

‎lib/_tls_legacy.js‎

Copy file name to clipboardExpand all lines: lib/_tls_legacy.js
+1-1Lines 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');
Collapse file

‎lib/_tls_wrap.js‎

Copy file name to clipboardExpand all lines: lib/_tls_wrap.js
+1-1Lines 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');
Collapse file

‎lib/crypto.js‎

Copy file name to clipboardExpand all lines: lib/crypto.js
+1-1Lines 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

Collapse file

‎lib/https.js‎

Copy file name to clipboardExpand all lines: lib/https.js
+1-1Lines 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');
Collapse file

‎lib/internal/util.js‎

Copy file name to clipboardExpand all lines: lib/internal/util.js
+1-1Lines 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
};
Collapse file

‎lib/tls.js‎

Copy file name to clipboardExpand all lines: lib/tls.js
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.