From cf02cf1e18bd8902f673b4821e714e7c803ed478 Mon Sep 17 00:00:00 2001 From: Alexey Elin Date: Thu, 14 Jan 2021 22:03:58 +0300 Subject: [PATCH] docs: remove duplicated the (#40434) PR Close #40434 --- .circleci/env.sh | 2 +- dev-infra/build-worker.js | 2 +- dev-infra/ng-dev.js | 2 +- dev-infra/utils/config.ts | 2 +- integration/BUILD.bazel | 4 ++-- packages/bazel/src/ng_package/ng_package.bzl | 2 +- packages/common/http/src/client.ts | 2 +- packages/common/src/directives/ng_if.ts | 2 +- packages/compiler-cli/ngcc/src/host/umd_host.ts | 2 +- .../ngcc/src/rendering/esm_rendering_formatter.ts | 2 +- .../compiler-cli/src/ngtsc/sourcemaps/src/segment_marker.ts | 2 +- .../src/transformers/patch_alias_reference_resolution.ts | 2 +- packages/compiler/test/aot/jit_summaries_spec.ts | 2 +- packages/core/src/render3/component.ts | 2 +- packages/forms/src/directives/validators.ts | 6 +++--- packages/language-service/ivy/test/compiler_spec.ts | 2 +- .../misc/angular-in-memory-web-api/src/http-status-codes.ts | 2 +- packages/router/src/apply_redirects.ts | 2 +- packages/router/src/directives/router_link_active.ts | 2 +- packages/router/src/events.ts | 2 +- 20 files changed, 23 insertions(+), 23 deletions(-) diff --git a/.circleci/env.sh b/.circleci/env.sh index 93b4130587..3eaa031794 100755 --- a/.circleci/env.sh +++ b/.circleci/env.sh @@ -107,7 +107,7 @@ echo "export CI_SECRET_PAYLOAD_FIREBASE_TOKEN=\"${CI_SECRET_PAYLOAD_FIREBASE_TOK #################################################################################################### #################################################################################################### ## Source `$BASH_ENV` to make the variables available immediately. ## -## ***NOTE: This must remain the the last action in this script*** ## +## ***NOTE: This must remain the last action in this script*** ## #################################################################################################### #################################################################################################### source $BASH_ENV; diff --git a/dev-infra/build-worker.js b/dev-infra/build-worker.js index df9afa07ab..5198e6458e 100644 --- a/dev-infra/build-worker.js +++ b/dev-infra/build-worker.js @@ -205,7 +205,7 @@ function validateCommonConfig(config) { */ function readConfigFile(configPath, returnEmptyObjectOnError) { if (returnEmptyObjectOnError === void 0) { returnEmptyObjectOnError = false; } - // If the the `.ts` extension has not been set up already, and a TypeScript based + // If the `.ts` extension has not been set up already, and a TypeScript based // version of the given configuration seems to exist, set up `ts-node` if available. if (require.extensions['.ts'] === undefined && fs.existsSync(configPath + ".ts") && isTsNodeAvailable()) { diff --git a/dev-infra/ng-dev.js b/dev-infra/ng-dev.js index 6f8e17082f..25bcc895fa 100755 --- a/dev-infra/ng-dev.js +++ b/dev-infra/ng-dev.js @@ -121,7 +121,7 @@ function validateCommonConfig(config) { */ function readConfigFile(configPath, returnEmptyObjectOnError) { if (returnEmptyObjectOnError === void 0) { returnEmptyObjectOnError = false; } - // If the the `.ts` extension has not been set up already, and a TypeScript based + // If the `.ts` extension has not been set up already, and a TypeScript based // version of the given configuration seems to exist, set up `ts-node` if available. if (require.extensions['.ts'] === undefined && fs.existsSync(configPath + ".ts") && isTsNodeAvailable()) { diff --git a/dev-infra/utils/config.ts b/dev-infra/utils/config.ts index 358c02d766..75d8a9fbee 100644 --- a/dev-infra/utils/config.ts +++ b/dev-infra/utils/config.ts @@ -100,7 +100,7 @@ function validateCommonConfig(config: Partial) { * configuration file cannot be read. */ function readConfigFile(configPath: string, returnEmptyObjectOnError = false): object { - // If the the `.ts` extension has not been set up already, and a TypeScript based + // If the `.ts` extension has not been set up already, and a TypeScript based // version of the given configuration seems to exist, set up `ts-node` if available. if (require.extensions['.ts'] === undefined && existsSync(`${configPath}.ts`) && isTsNodeAvailable()) { diff --git a/integration/BUILD.bazel b/integration/BUILD.bazel index 33d2e09d38..1f06b7a163 100644 --- a/integration/BUILD.bazel +++ b/integration/BUILD.bazel @@ -4,7 +4,7 @@ load(":angular_integration_test.bzl", "angular_integration_test") # cases the tests are able to select a random free port. # # Where `ng e2e` is used we pass `ng e2e --port 0` which prompts the cli -# to select a random free port for the the e2e test. The protractor.conf is +# to select a random free port for the e2e test. The protractor.conf is # automatically updated to use this port. # # Karma automatically finds a free port so no effort is needed there. @@ -61,7 +61,7 @@ INTEGRATION_TESTS = { }, "hello_world__systemjs_umd": { # Special case for `hello_world__systemjs_umd` test as we want to pin - # `systems` at version 0.20.2 and not link to the the root @npm//systemjs + # `systems` at version 0.20.2 and not link to the root @npm//systemjs # which is stuck at 0.18.10 and can't be updated to 0.20.2 without # breaking the legacy saucelabs job. "pinned_npm_packages": ["systemjs"], diff --git a/packages/bazel/src/ng_package/ng_package.bzl b/packages/bazel/src/ng_package/ng_package.bzl index c7823003fe..e038f4a8b8 100644 --- a/packages/bazel/src/ng_package/ng_package.bzl +++ b/packages/bazel/src/ng_package/ng_package.bzl @@ -331,7 +331,7 @@ def _filter_out_generated_files(files, extension, package_path = None): files_list = files.to_list() if type(files) == _DEPSET_TYPE else files for file in files_list: # If the "package_path" parameter has been specified, filter out files - # that do not start with the the specified package path. + # that do not start with the specified package path. if package_path and not file.short_path.startswith(package_path): continue diff --git a/packages/common/http/src/client.ts b/packages/common/http/src/client.ts index 7f9c57a0da..1761bae22b 100644 --- a/packages/common/http/src/client.ts +++ b/packages/common/http/src/client.ts @@ -1773,7 +1773,7 @@ export class HttpClient { /** * Constructs a `PATCH` request that interprets the body as an `ArrayBuffer` and - * returns the the full event stream. + * returns the full event stream. * * @param url The endpoint URL. * @param body The resources to edit. diff --git a/packages/common/src/directives/ng_if.ts b/packages/common/src/directives/ng_if.ts index f525a907d6..cc4038adb8 100644 --- a/packages/common/src/directives/ng_if.ts +++ b/packages/common/src/directives/ng_if.ts @@ -90,7 +90,7 @@ import {Directive, EmbeddedViewRef, Input, TemplateRef, ViewContainerRef, ɵstri * You might want to show a set of properties from the same object. If you are waiting * for asynchronous data, the object can be undefined. * In this case, you can use `ngIf` and store the result of the condition in a local - * variable as shown in the the following example. + * variable as shown in the following example. * * {@example common/ngIf/ts/module.ts region='NgIfAs'} * diff --git a/packages/compiler-cli/ngcc/src/host/umd_host.ts b/packages/compiler-cli/ngcc/src/host/umd_host.ts index fa8080d1e4..1467c2141e 100644 --- a/packages/compiler-cli/ngcc/src/host/umd_host.ts +++ b/packages/compiler-cli/ngcc/src/host/umd_host.ts @@ -46,7 +46,7 @@ export class UmdReflectionHost extends Esm5ReflectionHost { } getDeclarationOfIdentifier(id: ts.Identifier): Declaration|null { - // First we try one of the the following: + // First we try one of the following: // 1. The `exports` identifier - referring to the current file/module. // 2. An identifier (e.g. `foo`) that refers to an imported UMD module. // 3. A UMD style export identifier (e.g. the `foo` of `exports.foo`). diff --git a/packages/compiler-cli/ngcc/src/rendering/esm_rendering_formatter.ts b/packages/compiler-cli/ngcc/src/rendering/esm_rendering_formatter.ts index 06303cc19c..17d55d5d45 100644 --- a/packages/compiler-cli/ngcc/src/rendering/esm_rendering_formatter.ts +++ b/packages/compiler-cli/ngcc/src/rendering/esm_rendering_formatter.ts @@ -173,7 +173,7 @@ export class EsmRenderingFormatter implements RenderingFormatter { } /** - * Rewrite the the IVY switch markers to indicate we are in IVY mode. + * Rewrite the IVY switch markers to indicate we are in IVY mode. */ rewriteSwitchableDeclarations( outputText: MagicString, sourceFile: ts.SourceFile, diff --git a/packages/compiler-cli/src/ngtsc/sourcemaps/src/segment_marker.ts b/packages/compiler-cli/src/ngtsc/sourcemaps/src/segment_marker.ts index 82865869c6..a325bc19c3 100644 --- a/packages/compiler-cli/src/ngtsc/sourcemaps/src/segment_marker.ts +++ b/packages/compiler-cli/src/ngtsc/sourcemaps/src/segment_marker.ts @@ -10,7 +10,7 @@ /** * A marker that indicates the start of a segment in a mapping. * - * The end of a segment is indicated by the the first segment-marker of another mapping whose start + * The end of a segment is indicated by the first segment-marker of another mapping whose start * is greater or equal to this one. */ export interface SegmentMarker { diff --git a/packages/compiler-cli/src/transformers/patch_alias_reference_resolution.ts b/packages/compiler-cli/src/transformers/patch_alias_reference_resolution.ts index 7f632a315d..4f9932ca78 100644 --- a/packages/compiler-cli/src/transformers/patch_alias_reference_resolution.ts +++ b/packages/compiler-cli/src/transformers/patch_alias_reference_resolution.ts @@ -64,7 +64,7 @@ interface EmitResolver { * solves it conceptually the same way, but obviously doesn't need to access an `@internal` API. * * The set that is returned by this function is meant to be filled with import declaration nodes - * that have been referenced in a value-position by the transform, such the the installed patch can + * that have been referenced in a value-position by the transform, such the installed patch can * ensure that those import declarations are not elided. * * See below. Note that this uses sourcegraph as the TypeScript checker file doesn't display on diff --git a/packages/compiler/test/aot/jit_summaries_spec.ts b/packages/compiler/test/aot/jit_summaries_spec.ts index aaad84555c..9d37f8ce52 100644 --- a/packages/compiler/test/aot/jit_summaries_spec.ts +++ b/packages/compiler/test/aot/jit_summaries_spec.ts @@ -448,7 +448,7 @@ describe('aot summaries for jit', () => { expect(lib3ModuleNgSummarySource) .toMatch(/export function Lib3ModuleNgSummary\(\).*reference:i3\.ReexportModule,/s); // ngsummaries should re-export all used summaries directly. With external symbol re-exports - // enabled, the the "lib1" summaries would be re-exported through "lib2" in order to avoid + // enabled, the "lib1" summaries would be re-exported through "lib2" in order to avoid // a *direct* dependency on "lib1". expect(lib3ModuleNgSummarySource) .toContain( diff --git a/packages/core/src/render3/component.ts b/packages/core/src/render3/component.ts index 5d63f4e0db..7ed61bf7a2 100644 --- a/packages/core/src/render3/component.ts +++ b/packages/core/src/render3/component.ts @@ -178,7 +178,7 @@ export function createRootComponentView( ngDevMode && assertIndexInRange(rootView, index); rootView[index] = rNode; // '#host' is added here as we don't know the real host DOM name (we don't want to read it) and at - // the same time we want to communicate the the debug `TNode` that this is a special `TNode` + // the same time we want to communicate the debug `TNode` that this is a special `TNode` // representing a host element. const tNode: TElementNode = getOrCreateTNode(tView, index, TNodeType.Element, '#host', null); const mergedAttrs = tNode.mergedAttrs = def.hostAttrs; diff --git a/packages/forms/src/directives/validators.ts b/packages/forms/src/directives/validators.ts index cc28a38614..b9b4040d6f 100644 --- a/packages/forms/src/directives/validators.ts +++ b/packages/forms/src/directives/validators.ts @@ -365,7 +365,7 @@ export class MinLengthValidator implements Validator, OnChanges { /** * @description - * Tracks changes to the the minimum length bound to this directive. + * Tracks changes to the minimum length bound to this directive. */ @Input() minlength!: string|number; // This input is always defined, since the name matches selector. @@ -443,7 +443,7 @@ export class MaxLengthValidator implements Validator, OnChanges { /** * @description - * Tracks changes to the the maximum length bound to this directive. + * Tracks changes to the maximum length bound to this directive. */ @Input() maxlength!: string|number; // This input is always defined, since the name matches selector. @@ -537,7 +537,7 @@ export class PatternValidator implements Validator, OnChanges { } /** - * Method that validates whether the value matches the the pattern requirement. + * Method that validates whether the value matches the pattern requirement. * @nodoc */ validate(control: AbstractControl): ValidationErrors|null { diff --git a/packages/language-service/ivy/test/compiler_spec.ts b/packages/language-service/ivy/test/compiler_spec.ts index f0bcbc3312..980eafca62 100644 --- a/packages/language-service/ivy/test/compiler_spec.ts +++ b/packages/language-service/ivy/test/compiler_spec.ts @@ -130,7 +130,7 @@ describe('language-service/compiler integration', () => { // when invoked via the Language Service. Testing this via the LS is important as only the LS // requests Angular analysis in the presence of TypeScript-level errors. In the case of broken // imports this distinction is especially important: Angular's incremental analysis is - // built on the the compiler's dependency graph, and this graph must be able to function even + // built on the compiler's dependency graph, and this graph must be able to function even // with broken imports. // // The test works by creating a component/module pair where the module imports and declares a diff --git a/packages/misc/angular-in-memory-web-api/src/http-status-codes.ts b/packages/misc/angular-in-memory-web-api/src/http-status-codes.ts index 6a82e2cee8..ea30c23f1a 100644 --- a/packages/misc/angular-in-memory-web-api/src/http-status-codes.ts +++ b/packages/misc/angular-in-memory-web-api/src/http-status-codes.ts @@ -516,7 +516,7 @@ export function getStatusText(code: number) { } /** - * Returns true if the the Http Status Code is 200-299 (success) + * Returns true if the Http Status Code is 200-299 (success) */ export function isSuccess(status: number): boolean { return status >= 200 && status < 300; diff --git a/packages/router/src/apply_redirects.ts b/packages/router/src/apply_redirects.ts index 8b6a2ec2f0..98f195099c 100644 --- a/packages/router/src/apply_redirects.ts +++ b/packages/router/src/apply_redirects.ts @@ -167,7 +167,7 @@ class ApplyRedirects { .pipe( concatMap(childOutlet => { const child = segmentGroup.children[childOutlet]; - // Sort the routes so routes with outlets that match the the segment appear + // Sort the routes so routes with outlets that match the segment appear // first, followed by routes for other outlets, which might match if they have an // empty path. const sortedRoutes = sortByMatchingOutlets(routes, childOutlet); diff --git a/packages/router/src/directives/router_link_active.ts b/packages/router/src/directives/router_link_active.ts index 0d4d06bfbb..080b6ec3ce 100644 --- a/packages/router/src/directives/router_link_active.ts +++ b/packages/router/src/directives/router_link_active.ts @@ -25,7 +25,7 @@ import {RouterLink, RouterLinkWithHref} from './router_link'; * is active. * * Use this directive to create a visual distinction for elements associated with an active route. - * For example, the following code highlights the word "Bob" when the the router + * For example, the following code highlights the word "Bob" when the router * activates the associated route: * * ``` diff --git a/packages/router/src/events.ts b/packages/router/src/events.ts index 81c4274df7..2009892682 100644 --- a/packages/router/src/events.ts +++ b/packages/router/src/events.ts @@ -266,7 +266,7 @@ export class GuardsCheckEnd extends RouterEvent { } /** - * An event triggered at the the start of the Resolve phase of routing. + * An event triggered at the start of the Resolve phase of routing. * * Runs in the "resolve" phase whether or not there is anything to resolve. * In future, may change to only run when there are things to be resolved.