diff --git a/scripts/format b/scripts/format index bc9f8697..c8c105d0 100755 --- a/scripts/format +++ b/scripts/format @@ -120,7 +120,7 @@ const staged = async () => { const existing = await asyncFilter( files, - async ({ filename }) => await exists(filename) + ({ filename }) => exists(filename) ); if (!existing.length) { diff --git a/scripts/run-staged-pkg b/scripts/run-staged-pkg index b5a3c2b0..b4772c84 100755 --- a/scripts/run-staged-pkg +++ b/scripts/run-staged-pkg @@ -68,7 +68,7 @@ const runLintAndGitAdd = async (staged, pkgs) => { const existing = await asyncFilter( staged, - async ({ filename }) => await exists(filename) + ({ filename }) => exists(filename) ); const checksums = await map(existing, async file => {