Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tasshi-me committed Oct 24, 2024
1 parent b99b87e commit 4ba2157
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/plugin/packer/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const throwIfInvalidManifest = (manifest: any, pluginDir: string) => {
* Create and save plugin.zip
*/
const outputPlugin = (outputPath: string, plugin: Buffer): Promise<string> => {
return writeFile(outputPath, plugin).then((arg) => outputPath);
return writeFile(outputPath, plugin).then(() => outputPath);
};

/**
Expand All @@ -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;
}
};
Expand All @@ -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;
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/plugin/packer/create-contents-zip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const createContentsZip = (
pluginDir: string,
manifest: any,
): Promise<Buffer> => {
return new Promise((res, rej) => {
return new Promise((res) => {
const output = new streamBuffers.WritableStreamBuffer();
const zipFile = new ZipFile();
let size: any = null;
Expand Down
2 changes: 1 addition & 1 deletion src/plugin/packer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const zip = (
signature: Buffer,
): Promise<Buffer> => {
debug(`zip(): start`);
return new Promise((res, rej) => {
return new Promise((res) => {
const output = new streamBuffers.WritableStreamBuffer();
const zipFile = new ZipFile();
output.on("finish", () => {
Expand Down

0 comments on commit 4ba2157

Please sign in to comment.