Skip to content

Commit 46552e7

Browse files
committedJan 4, 2016
minor
1 parent 04a76d5 commit 46552e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ JWT.sign = function(payload, secretOrPrivateKey, options, callback) {
6161
return typeof options[key] !== 'undefined';
6262
})[0];
6363

64-
console.warn('invalid "' + invalid_option + '" option for ' + (typeof payload) + ' payload');
64+
if (invalid_option) {
65+
console.warn('invalid "' + invalid_option + '" option for ' + (typeof payload) + ' payload');
66+
}
6567
}
6668

6769

0 commit comments

Comments
 (0)
Please sign in to comment.