Skip to content

Commit

Permalink
Merge d166c6e into 2b3b947
Browse files Browse the repository at this point in the history
  • Loading branch information
railsstudent committed Jan 4, 2017
2 parents 2b3b947 + d166c6e commit 625f793
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -37,8 +37,8 @@ exports.digest = function digest (options) {

// convert secret to buffer
if (!Buffer.isBuffer(secret)) {
secret = encoding === 'base32' ? base32.decode(secret)
: new Buffer(secret, encoding);
if (encoding === 'base32') { secret = base32.decode(secret); }
secret = new Buffer(secret, encoding);
}

// create an buffer from the counter
Expand Down

0 comments on commit 625f793

Please sign in to comment.