Skip to content

Commit f59e10d

Browse files
committed
fix: typecheck condition
closes 233
1 parent a0e3961 commit f59e10d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scripts/postinstall.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ const getBinary = async url => {
2727
: {}
2828
let response = await fetch(url, headers)
2929

30-
if (
31-
response.headers.get('content-type').includes('application/octet-stream')
32-
) {
30+
if (!response.headers.get('content-type') !== 'application/octet-stream') {
3331
const payload = await response.json()
3432
if (!response.ok) throw new Error(JSON.stringify(payload, null, 2))
3533
response = await getLatest(payload)

0 commit comments

Comments
 (0)