diff --git a/src/factory.ts b/src/factory.ts index 5248e4c1c99174bc593cc71d5fd06524ea0fc785..700a923da1e53fc0a8f01bf0f607033623b522ab 100644 --- a/src/factory.ts +++ b/src/factory.ts @@ -155,7 +155,7 @@ export async function flashZip( blob: Blob, wipe: boolean, onReconnect: ReconnectCallback, - onProgress: FactoryProgressCallback = (action: string, item: string, progress: number) => {} + onProgress: FactoryProgressCallback = (_action: string, _item: string, _progress: number) => {} ) { onProgress("load", "package", 0.0); let reader = new ZipReader(new BlobReader(blob)); diff --git a/src/fastboot.ts b/src/fastboot.ts index 2b56699877849254a55bb0fb8151cc591a8898fa..b94835cdcf2833c493d802f9dfb3335789e0064b 100644 --- a/src/fastboot.ts +++ b/src/fastboot.ts @@ -431,7 +431,7 @@ export class FastbootDevice { * @param {FlashProgressCallback} onProgress - Callback for upload progress updates. * @throws {FastbootError} */ - async upload(partition: string, buffer: ArrayBuffer, onProgress: FlashProgressCallback = (progress) => {}) { + async upload(partition: string, buffer: ArrayBuffer, onProgress: FlashProgressCallback = (_progress) => {}) { common.logDebug( `Uploading single sparse to ${partition}: ${buffer.byteLength} bytes` ); @@ -500,7 +500,7 @@ export class FastbootDevice { * @param {FlashProgressCallback} onProgress - Callback for flashing progress updates. * @throws {FastbootError} */ - async flashBlob(partition: string, blob: Blob, onProgress: FlashProgressCallback = (progress) => {}) { + async flashBlob(partition: string, blob: Blob, onProgress: FlashProgressCallback = (_progress) => {}) { // Use current slot if partition is A/B if ((await this.getVariable(`has-slot:${partition}`)) === "yes") { partition += "_" + (await this.getVariable("current-slot")); @@ -577,7 +577,7 @@ export class FastbootDevice { * @param {ReconnectCallback} onReconnect - Callback to request device reconnection. * @param {FactoryProgressCallback} onProgress - Progress callback for image flashing. */ - async flashFactoryZip(blob: Blob, wipe: boolean, onReconnect: ReconnectCallback, onProgress: FactoryProgressCallback = (progress) => {}) { + async flashFactoryZip(blob: Blob, wipe: boolean, onReconnect: ReconnectCallback, onProgress: FactoryProgressCallback = (_progress) => {}) { return await flashFactoryZip(this, blob, wipe, onReconnect, onProgress); } }