Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerivec committed Nov 1, 2024
1 parent c19bb73 commit 745a2f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 18 deletions.
7 changes: 1 addition & 6 deletions src/autodl/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,7 @@ export async function writeCache(manufacturer: string, releasesUrl: string): Pro
}
}

export async function download(
manufacturer: string,
releasesUrl: string,
assetFinders: AssetFindPredicate[],
extraMetas: ExtraMetas,
): Promise<void> {
export async function download(manufacturer: string, releasesUrl: string, assetFinders: AssetFindPredicate[], extraMetas: ExtraMetas): Promise<void> {
const logPrefix = `[${manufacturer}]`;
const releases = await getJson<ReleasesJson>(manufacturer, releasesUrl);

Expand Down
9 changes: 3 additions & 6 deletions src/autodl/lixee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ export async function writeCache(): Promise<void> {
}

export async function download(): Promise<void> {
await github.download(
NAME,
FIRMWARE_URL,
[(a): boolean => a.name.endsWith(FIRMWARE_EXT), (a): boolean => a.name.endsWith(FIRMWARE_LIMITED)],
{manufacturerName: [NAME]},
);
await github.download(NAME, FIRMWARE_URL, [(a): boolean => a.name.endsWith(FIRMWARE_EXT), (a): boolean => a.name.endsWith(FIRMWARE_LIMITED)], {
manufacturerName: [NAME],
});
}
7 changes: 1 addition & 6 deletions src/autodl/xyzroe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,5 @@ export async function writeCache(): Promise<void> {
}

export async function download(): Promise<void> {
await github.download(
NAME,
FIRMWARE_URL,
[(a): boolean => a.name.endsWith(FIRMWARE_EXT)],
{modelId: 'ZigUSB_C6'},
);
await github.download(NAME, FIRMWARE_URL, [(a): boolean => a.name.endsWith(FIRMWARE_EXT)], {modelId: 'ZigUSB_C6'});
}

0 comments on commit 745a2f6

Please sign in to comment.