Skip to content

Commit 2548c69

Browse files
committed
Fix url and formatting
1 parent 2500fa8 commit 2548c69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compare.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ const c = {
99
};
1010

1111
async function open(url) {
12-
const arr = url.startsWith('https://')
13-
? await (await fetch(url)).json()
14-
: JSON.parse(readFileSync('./sighashes.json', 'utf-8'));
12+
const arr = url.startsWith('https://')
13+
? await (await fetch(url)).json()
14+
: JSON.parse(readFileSync(url, 'utf-8'));
1515
console.info('Open', c.cyan(url), arr.length, 'entries');
1616
return new Set(arr);
1717
}

0 commit comments

Comments
 (0)