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 <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>
  • Loading branch information
JacksonTian authored and MylesBorins committed Mar 9, 2017
1 parent b7c5295 commit bde1a7e
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 @@ -101,7 +101,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 bde1a7e

Please sign in to comment.