From 39a8ecc398aec506f7b9fd2621ec51e66a8c2822 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 19 May 2016 21:11:02 -0700 Subject: [PATCH] remove asserts. --- lib/bcoin/utils.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/bcoin/utils.js b/lib/bcoin/utils.js index 81a311f3..7521e222 100644 --- a/lib/bcoin/utils.js +++ b/lib/bcoin/utils.js @@ -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')