Skip to content

Commit cc793c9

Browse files
committed
Fix bug that the linter caught
1 parent fd4b7cb commit cc793c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function price (fsym, tsyms, useBtc) {
2626

2727
function priceHistorical (fsym, tsyms, time) {
2828
if (!Array.isArray(tsyms)) tsyms = [tsyms]
29-
if (!time instanceof Date) throw new Error('time parameter must be an instance of Date.')
29+
if (!(time instanceof Date)) throw new Error('time parameter must be an instance of Date.')
3030
time = Math.floor(time.getTime() / 1000)
3131
var url = baseUrl + 'pricehistorical?fsym=' + fsym + '&tsyms=' + tsyms.join(',') + '&ts=' + time
3232
return fetchJSON(url)

0 commit comments

Comments
 (0)