Skip to content

Commit ce9b80f

Browse files
committed
fixed the typeof comparison
1 parent f2f2821 commit ce9b80f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/breinify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ Breinify.prototype = {
223223

224224
var payload = {
225225
'apiKey': config.apiKey,
226-
'unixTimestamp': Math.floor(typeof unixTimestamp === number ? unixTimestamp : Date.now() / 1000),
226+
'unixTimestamp': Math.floor(typeof unixTimestamp === 'number' ? unixTimestamp : Date.now() / 1000),
227227
'user': user
228228
};
229229

0 commit comments

Comments
 (0)