Skip to content

Commit b995a06

Browse files
committed
Fix style
1 parent f8af800 commit b995a06

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scrypt-async.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,8 @@ function scrypt(password, salt, logN, r, dkLen, interruptStep, callback, encodin
154154

155155
function PBKDF2_HMAC_SHA256_OneIter(password, salt, dkLen) {
156156
// compress password if it's longer than hash block length
157-
if(password.length > 64)
158-
{
159-
// coerces the structure into an array type if it lacks support for the .push operation
157+
if(password.length > 64) {
158+
// coerces the structure into an array type if it lacks support for the .push operation
160159
// use [...password] when you instead of the "Array.prototype.slice.call" when you deprecate pre-ES6
161160
// it's supposed to be faster in most browsers.
162161
password = SHA256(password.push ? password : Array.prototype.slice.call(password, 0))

0 commit comments

Comments
 (0)