Skip to content

Commit a1dabe2

Browse files
authored
fix floorp_downloader.mjs
1 parent 2bf9f79 commit a1dabe2

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

floorp_downloader/floorp_downloader.mjs

+7-5
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ if (process.env.GITHUB_TOKEN) {
77
headers.Authorization = `Bearer ${process.env.GITHUB_TOKEN}`;
88
}
99

10-
const resultObj = await got({
11-
url: "https://api.github.com/repos/Floorp-Projects/Floorp/releases/latest",
12-
headers
13-
}).json();
10+
const resultObj = await got(
11+
"https://api.github.com/repos/Floorp-Projects/Floorp/releases/latest",
12+
{
13+
headers
14+
}
15+
).json();
1416

1517
let validAsset;
1618
const [os, arch] = process.argv.slice(2);
@@ -48,4 +50,4 @@ if (name.endsWith(".tar.bz2")) {
4850
outputFilename = "floorp-package";
4951
}
5052

51-
fs.writeFileSync(outputFilename, binary);
53+
fs.writeFileSync(outputFilename, binary);

0 commit comments

Comments
 (0)