From dff39acc30d60741f700b46fd849f6dad4f8c5bf Mon Sep 17 00:00:00 2001 From: Rinku Chaudhari <76877078+therealrinku@users.noreply.github.com> Date: Fri, 3 Feb 2023 04:40:23 +0545 Subject: [PATCH] fix typo in comment and unused variable remove (#45307) ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md) ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] [e2e](https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs) tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md) ## Documentation / Examples - [ ] Make sure the linting passes by running `pnpm build && pnpm lint` - [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md) --- bench/recursive-copy/run.js | 2 +- scripts/publish-native.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bench/recursive-copy/run.js b/bench/recursive-copy/run.js index ab12258004..58c59bd896 100644 --- a/bench/recursive-copy/run.js +++ b/bench/recursive-copy/run.js @@ -12,7 +12,7 @@ const createSrcFolder = async () => { const files = new Array(100) .fill(undefined) - .map((x, i) => + .map((_, i) => join(srcDir, `folder${i % 5}`, `folder${i + (1 % 5)}`, `file${i}`) ) diff --git a/scripts/publish-native.js b/scripts/publish-native.js index d96d0bb8e4..57aa40f75e 100755 --- a/scripts/publish-native.js +++ b/scripts/publish-native.js @@ -70,7 +70,7 @@ const cwd = process.cwd() } finally { publishSema.release() } - // lerna publish in next step sill fail if git status is not clean + // lerna publish in next step will fail if git status is not clean await execa( `git`, [