From 84e198f0d0285077c228a2ea41e927103ec4119f Mon Sep 17 00:00:00 2001 From: youngwendy <166624921+youngwendy@users.noreply.github.com> Date: Fri, 12 Apr 2024 22:33:43 +0800 Subject: [PATCH] chore: remove repetitive words (#23341) Signed-off-by: youngwendy --- cli/build.rs | 2 +- cli/lsp/documents.rs | 2 +- cli/tsc/dts/lib.dom.d.ts | 2 +- cli/tsc/dts/lib.webworker.d.ts | 2 +- cli/tsc/mod.rs | 2 +- ext/node/polyfills/internal/util/inspect.mjs | 2 +- ext/websocket/lib.deno_websocket.d.ts | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cli/build.rs b/cli/build.rs index 482748d58f..81bd4eddad 100644 --- a/cli/build.rs +++ b/cli/build.rs @@ -289,7 +289,7 @@ mod ts { // NOTE(bartlomieju): Compressing the TSC snapshot in debug build took // ~45s on M1 MacBook Pro; without compression it took ~1s. - // Thus we're not not using compressed snapshot, trading off + // Thus we're not using compressed snapshot, trading off // a lot of build time for some startup time in debug build. let mut file = std::fs::File::create(snapshot_path).unwrap(); if cfg!(debug_assertions) { diff --git a/cli/lsp/documents.rs b/cli/lsp/documents.rs index f342129b5c..9ca2db3169 100644 --- a/cli/lsp/documents.rs +++ b/cli/lsp/documents.rs @@ -304,7 +304,7 @@ impl Document { resolver: &dyn deno_graph::source::Resolver, npm_resolver: &dyn deno_graph::source::NpmResolver, ) -> Arc { - // we only ever do `Document::new` on on disk resources that are supposed to + // we only ever do `Document::new` on disk resources that are supposed to // be diagnosable, unlike `Document::open`, so it is safe to unconditionally // parse the module. let (maybe_parsed_source, maybe_module) = parse_and_analyze_module( diff --git a/cli/tsc/dts/lib.dom.d.ts b/cli/tsc/dts/lib.dom.d.ts index fab313d112..da7364f2a9 100644 --- a/cli/tsc/dts/lib.dom.d.ts +++ b/cli/tsc/dts/lib.dom.d.ts @@ -25582,7 +25582,7 @@ interface WebSocket extends EventTarget { */ readonly url: string; /** - * Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. + * Closes the WebSocket connection, optionally using code as the WebSocket connection close code and reason as the WebSocket connection close reason. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close) */ diff --git a/cli/tsc/dts/lib.webworker.d.ts b/cli/tsc/dts/lib.webworker.d.ts index 8fd57617a9..0cc7df77d3 100644 --- a/cli/tsc/dts/lib.webworker.d.ts +++ b/cli/tsc/dts/lib.webworker.d.ts @@ -8292,7 +8292,7 @@ interface WebSocket extends EventTarget { */ readonly url: string; /** - * Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. + * Closes the WebSocket connection, optionally using code as the WebSocket connection close code and reason as the WebSocket connection close reason. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close) */ diff --git a/cli/tsc/mod.rs b/cli/tsc/mod.rs index 6f8035bec1..383ed1291d 100644 --- a/cli/tsc/mod.rs +++ b/cli/tsc/mod.rs @@ -60,7 +60,7 @@ pub static COMPILER_SNAPSHOT: Lazy> = Lazy::new( // NOTE(bartlomieju): Compressing the TSC snapshot in debug build took // ~45s on M1 MacBook Pro; without compression it took ~1s. - // Thus we're not not using compressed snapshot, trading off + // Thus we're not using compressed snapshot, trading off // a lot of build time for some startup time in debug build. #[cfg(debug_assertions)] return COMPRESSED_COMPILER_SNAPSHOT.to_vec().into_boxed_slice(); diff --git a/ext/node/polyfills/internal/util/inspect.mjs b/ext/node/polyfills/internal/util/inspect.mjs index 2f9167dfb2..20974db596 100644 --- a/ext/node/polyfills/internal/util/inspect.mjs +++ b/ext/node/polyfills/internal/util/inspect.mjs @@ -346,7 +346,7 @@ function hasBuiltInToString(value) { return true; } - // The object has a own `toString` property. Thus it's not not a built-in one. + // The object has a own `toString` property. Thus it's not a built-in one. if (Object.prototype.hasOwnProperty.call(value, "toString")) { return false; } diff --git a/ext/websocket/lib.deno_websocket.d.ts b/ext/websocket/lib.deno_websocket.d.ts index f3b496f3e5..b7227c255d 100644 --- a/ext/websocket/lib.deno_websocket.d.ts +++ b/ext/websocket/lib.deno_websocket.d.ts @@ -85,7 +85,7 @@ declare interface WebSocket extends EventTarget { */ readonly url: string; /** - * Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. + * Closes the WebSocket connection, optionally using code as the WebSocket connection close code and reason as the WebSocket connection close reason. */ close(code?: number, reason?: string): void; /**