From 68b03d269d0310e3aa958a954303daeab0366956 Mon Sep 17 00:00:00 2001 From: dongjinlong <164888560+worrycare@users.noreply.github.com> Date: Tue, 26 Mar 2024 20:27:40 +0800 Subject: [PATCH] chore: remove repetitive words in comments (#7963) Signed-off-by: dongjinlong --- core/connection.ts | 2 +- core/render_management.ts | 2 +- core/xml.ts | 2 +- demos/blockfactory/block_definition_extractor.js | 2 +- scripts/migration/renamings.json5 | 2 +- tests/scripts/load.mjs | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/connection.ts b/core/connection.ts index 56ba4c3a5..7a8836822 100644 --- a/core/connection.ts +++ b/core/connection.ts @@ -222,7 +222,7 @@ export class Connection implements IASTNodeLocationWithBlock { * Connect this connection to another connection. * * @param otherConnection Connection to connect to. - * @returns Whether the the blocks are now connected or not. + * @returns Whether the blocks are now connected or not. */ connect(otherConnection: Connection): boolean { if (this.targetConnection === otherConnection) { diff --git a/core/render_management.ts b/core/render_management.ts index f0ec2a133..c9041aedc 100644 --- a/core/render_management.ts +++ b/core/render_management.ts @@ -155,7 +155,7 @@ function dequeueBlock(block: BlockSvg) { * No need to render dead blocks. * * No need to render blocks with parents. A render for the block may have been - * queued, and the the block was connected to a parent, so it is no longer a + * queued, and the block was connected to a parent, so it is no longer a * root block. Rendering will be triggered through the real root block. */ function shouldRenderRootBlock(block: BlockSvg): boolean { diff --git a/core/xml.ts b/core/xml.ts index ee72f526b..db75e04c9 100644 --- a/core/xml.ts +++ b/core/xml.ts @@ -899,7 +899,7 @@ function applyNextTagNodes( * * @param xmlBlock XML block element. * @param workspace The workspace. - * @param parentConnection The parent connection to to connect this block to + * @param parentConnection The parent connection to connect this block to * after instantiating. * @param connectedToParentNext Whether the provided parent connection is a next * connection, rather than output or statement. diff --git a/demos/blockfactory/block_definition_extractor.js b/demos/blockfactory/block_definition_extractor.js index e6b1cedd6..fa1aae775 100644 --- a/demos/blockfactory/block_definition_extractor.js +++ b/demos/blockfactory/block_definition_extractor.js @@ -71,7 +71,7 @@ BlockDefinitionExtractor.newDomElement_ = function(name, opt_attrs, opt_text) { * requested type. * * @param {string} type Type name of desired connection constraint. - * @return {!Element} The representing the the constraint type. + * @return {!Element} The representing the constraint type. * @private */ BlockDefinitionExtractor.buildBlockForType_ = function(type) { diff --git a/scripts/migration/renamings.json5 b/scripts/migration/renamings.json5 index bdbb2a132..9c51b2d4a 100644 --- a/scripts/migration/renamings.json5 +++ b/scripts/migration/renamings.json5 @@ -45,7 +45,7 @@ // The name that the export had before this version. // All of the properties on this object are optional. 'oldExportName': { - // The new module that the export is in in this version. If + // The new module that the export is in this version. If // this is not provided, the newModule is assumed to be the // parent module's newPath. newModule: 'new.module.name', diff --git a/tests/scripts/load.mjs b/tests/scripts/load.mjs index 728a4fd2c..f2238cf1c 100644 --- a/tests/scripts/load.mjs +++ b/tests/scripts/load.mjs @@ -68,7 +68,7 @@ export const COMPRESSED = compressed(); * * When loading in uncompressed mode, if scriptExports is a simple * variable name (e.g. 'Blockly') then globalThis[scriptExports] will - * be set to the the chunk's Module object. This attempts to provide + * be set to the chunk's Module object. This attempts to provide * backward compatibility with loading the compressed chunk as a * script, where this is done by the compressed chunk's UMD wrapper. * The compatibility is not complete, however: since Module objects