chore: remove repetitive words in comments (#7963)

Signed-off-by: dongjinlong <dongjinlong@outlook.com>
This commit is contained in:
dongjinlong
2024-03-26 20:27:40 +08:00
committed by GitHub
parent 7d8ccebe67
commit 68b03d269d
6 changed files with 6 additions and 6 deletions

View File

@@ -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) {

View File

@@ -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 {

View File

@@ -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.

View File

@@ -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 <block> representing the the constraint type.
* @return {!Element} The <block> representing the constraint type.
* @private
*/
BlockDefinitionExtractor.buildBlockForType_ = function(type) {

View File

@@ -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',

View File

@@ -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