diff --git a/src/plugin/packer/cli.ts b/src/plugin/packer/cli.ts index 278c9b91df..5367bdbe63 100644 --- a/src/plugin/packer/cli.ts +++ b/src/plugin/packer/cli.ts @@ -138,7 +138,7 @@ const throwIfInvalidManifest = (manifest: any, pluginDir: string) => { * Create and save plugin.zip */ const outputPlugin = (outputPath: string, plugin: Buffer): Promise => { - return writeFile(outputPath, plugin).then((arg) => outputPath); + return writeFile(outputPath, plugin).then(() => outputPath); }; /** @@ -157,7 +157,7 @@ const validateMaxFileSize = (pluginDir: string) => { try { const stat = fs.statSync(path.join(pluginDir, filePath)); return stat.size <= maxBytes; - } catch (e) { + } catch (_) { return false; } }; @@ -168,7 +168,7 @@ const validateFileExists = (pluginDir: string) => { try { const stat = fs.statSync(path.join(pluginDir, filePath)); return stat.isFile(); - } catch (e) { + } catch (_) { return false; } }; diff --git a/src/plugin/packer/create-contents-zip.ts b/src/plugin/packer/create-contents-zip.ts index c9888e9442..9390cb7d68 100644 --- a/src/plugin/packer/create-contents-zip.ts +++ b/src/plugin/packer/create-contents-zip.ts @@ -13,7 +13,7 @@ export const createContentsZip = ( pluginDir: string, manifest: any, ): Promise => { - return new Promise((res, rej) => { + return new Promise((res) => { const output = new streamBuffers.WritableStreamBuffer(); const zipFile = new ZipFile(); let size: any = null; diff --git a/src/plugin/packer/index.ts b/src/plugin/packer/index.ts index 3aa14b7edd..d067ea1511 100644 --- a/src/plugin/packer/index.ts +++ b/src/plugin/packer/index.ts @@ -50,7 +50,7 @@ const zip = ( signature: Buffer, ): Promise => { debug(`zip(): start`); - return new Promise((res, rej) => { + return new Promise((res) => { const output = new streamBuffers.WritableStreamBuffer(); const zipFile = new ZipFile(); output.on("finish", () => {