Skip to content

Commit ed84957

Browse files
committed
chore: use js-typical camelCase
1 parent c74db2e commit ed84957

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import { downloadBinary, findRelease } from "./release"
99
async function main() {
1010
if (!(await isReady())) {
1111
try {
12-
const [name, asset_id, asset_filetype] = await findRelease(VERSION)
12+
const [name, assetId, assetFiletype] = await findRelease(VERSION)
1313
console.info(`Downloading ${name}`)
14-
await downloadBinary(asset_id, asset_filetype)
14+
await downloadBinary(assetId, assetFiletype)
1515
} catch (e) {
1616
console.error(`Failed to download binary:\n${e}`)
1717
await fs.rm(COMBINED_PATH, { recursive: true })

src/release.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ export async function findRelease(version: string) {
3232
] as const
3333
}
3434

35-
export async function downloadBinary(asset_id: number, asset_filetype: string) {
35+
export async function downloadBinary(assetId: number, assetFiletype: string) {
3636
// downloading the asset is copied from https://github.com/octokit/rest.js/issues/12#issuecomment-1916023479
3737
const asset = await octokit.repos.getReleaseAsset({
3838
owner: NAME,
3939
repo: NAME,
40-
asset_id: asset_id,
40+
asset_id: assetId,
4141
headers: {
4242
accept: "application/octet-stream",
4343
},
@@ -51,7 +51,7 @@ export async function downloadBinary(asset_id: number, asset_filetype: string) {
5151
const outputFile = createWriteStream(tmpfile.path)
5252
await pipeline(assetStream, outputFile)
5353

54-
if (asset_filetype === ".zip") {
54+
if (assetFiletype === ".zip") {
5555
const zip = new admzip(tmpfile.path)
5656
zip.extractAllTo(COMBINED_PATH, true)
5757
} else {

0 commit comments

Comments
 (0)