Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
lib: remove unnecessary parameter for assertCrypto()
The `exports` parameter is unnecessary.
  • Loading branch information
JacksonTian committed Jan 16, 2017
commit 019faee707ac638c37d894f118432fa1d4cc5e6e
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