remove asserts.
This commit is contained in:
parent
cd94217abd
commit
39a8ecc398
@ -405,7 +405,6 @@ utils.pbkdf2 = function pbkdf2(key, salt, iterations, dkLen, alg) {
|
||||
utils.encrypt = function encrypt(data, passphrase) {
|
||||
var key, cipher, out;
|
||||
|
||||
assert(crypto, 'No crypto module available.');
|
||||
assert(passphrase, 'No passphrase.');
|
||||
|
||||
if (typeof data === 'string')
|
||||
@ -446,7 +445,6 @@ utils.encrypt = function encrypt(data, passphrase) {
|
||||
utils.decrypt = function decrypt(data, passphrase) {
|
||||
var key, decipher, out;
|
||||
|
||||
assert(crypto, 'No crypto module available.');
|
||||
assert(passphrase, 'No passphrase.');
|
||||
|
||||
if (typeof data === 'string')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user