Skip to content

Commit

Permalink
lib: remove unnecessary parameter for assertCrypto()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
JacksonTian authored and italoacasas committed Jan 27, 2017
1 parent a408ba6 commit a3abba0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/_tls_legacy.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

require('internal/util').assertCrypto(exports);
require('internal/util').assertCrypto();

const assert = require('assert');
const EventEmitter = require('events');
Expand Down
2 changes: 1 addition & 1 deletion lib/_tls_wrap.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

require('internal/util').assertCrypto(exports);
require('internal/util').assertCrypto();

const assert = require('assert');
const crypto = require('crypto');
Expand Down
2 changes: 1 addition & 1 deletion lib/crypto.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
'use strict';

const internalUtil = require('internal/util');
internalUtil.assertCrypto(exports);
internalUtil.assertCrypto();

exports.DEFAULT_ENCODING = 'buffer';

Expand Down
2 changes: 1 addition & 1 deletion lib/https.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

require('internal/util').assertCrypto(exports);
require('internal/util').assertCrypto();

const tls = require('tls');
const url = require('url');
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ exports.objectToString = function objectToString(o) {
};

const noCrypto = !process.versions.openssl;
exports.assertCrypto = function(exports) {
exports.assertCrypto = function() {
if (noCrypto)
throw new Error('Node.js is not compiled with openssl crypto support');
};
Expand Down
2 changes: 1 addition & 1 deletion lib/tls.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

const internalUtil = require('internal/util');
internalUtil.assertCrypto(exports);
internalUtil.assertCrypto();

const net = require('net');
const url = require('url');
Expand Down

0 comments on commit a3abba0

Please sign in to comment.