@samitouri / QOSami-HFS / commits / e2c0e975

fix: (regression beta) faulty update for plugins with branch 'master'

Massimo Melina committed Oct 16, 2024 at 20:00 UTC e2c0e9752d81a54cea8a4ca14bd99b1874714caf
1 file changed +1 -1
src/github.ts
+1 -1
@@ -35,7 +35,7 @@ async function getGithubDefaultBranch(repo: string) {
35 if (!repo.includes('/'))
36 throw 'malformed repo'
37 const test = await httpString(`https://github.com/${repo}/archive/refs/heads/main.zip`, { method: 'HEAD' }).then(() => 1, (err) => {
38 - if (err?.cause?.statusCode === 404)
38 + if (err?.cause?.statusCode !== 404)
39 throw err
40 return 0
41 })