diff --git a/src/autodl/github.ts b/src/autodl/github.ts index 26e12d10..80568035 100644 --- a/src/autodl/github.ts +++ b/src/autodl/github.ts @@ -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 { +export async function download(manufacturer: string, releasesUrl: string, assetFinders: AssetFindPredicate[], extraMetas: ExtraMetas): Promise { const logPrefix = `[${manufacturer}]`; const releases = await getJson(manufacturer, releasesUrl); diff --git a/src/autodl/lixee.ts b/src/autodl/lixee.ts index 43555e51..7afd15e4 100644 --- a/src/autodl/lixee.ts +++ b/src/autodl/lixee.ts @@ -11,10 +11,7 @@ export async function writeCache(): Promise { } export async function download(): Promise { - 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], + }); } diff --git a/src/autodl/xyzroe.ts b/src/autodl/xyzroe.ts index 04fce1f2..ddbd1c2c 100644 --- a/src/autodl/xyzroe.ts +++ b/src/autodl/xyzroe.ts @@ -9,10 +9,5 @@ export async function writeCache(): Promise { } export async function download(): Promise { - 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'}); }