From 83e4aca26910a04868619b2ad4ed7a99e46ede74 Mon Sep 17 00:00:00 2001 From: welfuture <167498261+welfuture@users.noreply.github.com> Date: Mon, 22 Apr 2024 23:47:57 +0800 Subject: [PATCH] chore: remove repetitive words (#10393) Signed-off-by: welfuture --- docs/guides/install/azure-artifacts.md | 2 +- src/glob.zig | 2 +- src/js/node/fs.ts | 2 +- src/js/node/stream.ts | 2 +- src/thread_pool.zig | 2 +- test/cli/install/registry/bun-install-registry.test.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/guides/install/azure-artifacts.md b/docs/guides/install/azure-artifacts.md index 659e75fd6f0548..e35ad0b4cbe1e3 100644 --- a/docs/guides/install/azure-artifacts.md +++ b/docs/guides/install/azure-artifacts.md @@ -26,7 +26,7 @@ password = "$NPM_PASSWORD" --- -Then assign your Azure Personal Access Token to the the `NPM_PASSWORD` environment variable. Bun [automatically reads](/docs/runtime/env) `.env` files, so create a file called `.env` in your project root. There is no need to base-64 encode this token! Bun will do this for you. +Then assign your Azure Personal Access Token to the `NPM_PASSWORD` environment variable. Bun [automatically reads](/docs/runtime/env) `.env` files, so create a file called `.env` in your project root. There is no need to base-64 encode this token! Bun will do this for you. ```txt#.env NPM_PASSWORD= diff --git a/src/glob.zig b/src/glob.zig index d2ff2b2c605398..8fa778bfb1b53c 100644 --- a/src/glob.zig +++ b/src/glob.zig @@ -1057,7 +1057,7 @@ pub fn GlobWalker_( } /// A file can only match if: - /// a) it matches against the the last pattern, or + /// a) it matches against the last pattern, or /// b) it matches the next pattern, provided the current /// pattern is a double wildcard and the next pattern is /// not a double wildcard diff --git a/src/js/node/fs.ts b/src/js/node/fs.ts index 7f24fd8b9cedf7..5ccff022663c1c 100644 --- a/src/js/node/fs.ts +++ b/src/js/node/fs.ts @@ -772,7 +772,7 @@ ReadStream = (function (InternalReadStream) { // # - // n should be the the highwatermark passed from Readable.read when calling internal _read (_read is set to this private fn in this class) + // n should be the highwatermark passed from Readable.read when calling internal _read (_read is set to this private fn in this class) #internalRead(n) { // pos is the current position in the file // by default, if a start value is provided, pos starts at this.start diff --git a/src/js/node/stream.ts b/src/js/node/stream.ts index 58967763c6ac35..8a5ed9c1a8b096 100644 --- a/src/js/node/stream.ts +++ b/src/js/node/stream.ts @@ -5364,7 +5364,7 @@ function createNativeStreamReadable(Readable) { } // maxToRead can be the highWaterMark (by default) or the remaining amount of the stream to read - // This is so the the consumer of the stream can terminate the stream early if they know + // This is so the consumer of the stream can terminate the stream early if they know // how many bytes they want to read (ie. when reading only part of a file) #getRemainingChunk(maxToRead = this.#highWaterMark) { var chunk = this.#remainingChunk; diff --git a/src/thread_pool.zig b/src/thread_pool.zig index 283d640594ed50..887e0c00eb7a36 100644 --- a/src/thread_pool.zig +++ b/src/thread_pool.zig @@ -1145,7 +1145,7 @@ pub const Node = struct { const buffer_head = buffer.head.load(.Acquire); const buffer_tail = buffer.tail.load(.Acquire); - // Overly large size indicates the the tail was updated a lot after the head was loaded. + // Overly large size indicates the tail was updated a lot after the head was loaded. // Reload both and try again. const buffer_size = buffer_tail -% buffer_head; if (buffer_size > capacity) { diff --git a/test/cli/install/registry/bun-install-registry.test.ts b/test/cli/install/registry/bun-install-registry.test.ts index b3d10a3be05c70..585ab3d594f249 100644 --- a/test/cli/install/registry/bun-install-registry.test.ts +++ b/test/cli/install/registry/bun-install-registry.test.ts @@ -1958,7 +1958,7 @@ describe("workspaces", async () => { version: "1.0.0", }), ); - // install first from the root, the the workspace package + // install first from the root, the workspace package var { stdout, stderr, exited } = spawn({ cmd: [bunExe(), "install"], cwd: packageDir,