remove asserts.

This commit is contained in:
Christopher Jeffrey 2016-05-19 21:11:02 -07:00
parent cd94217abd
commit 39a8ecc398
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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')