refactor(common): update argument length in UrlCodec.areEqual method and AngularJSUrlCodec.areEqual methods (#30331)

dgeni requires that method arguments be at least 2 characters long

PR Close #30331
This commit is contained in:
Brandon 2019-05-08 09:45:40 -05:00 committed by Jason Aden
parent f5127f601d
commit 0e92332491
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ export abstract class UrlCodec {
abstract normalize(path: string, search: {[k: string]: unknown}, hash: string, baseUrl?: string):
string;
abstract areEqual(a: string, b: string): boolean;
abstract areEqual(valA: string, valB: string): boolean;
abstract parse(url: string, base?: string): {
href: string,
@ -134,7 +134,7 @@ export class AngularJSUrlCodec implements UrlCodec {
}
}
areEqual(a: string, b: string) { return this.normalize(a) === this.normalize(b); }
areEqual(valA: string, valB: string) { return this.normalize(valA) === this.normalize(valB); }
// https://github.com/angular/angular.js/blob/864c7f0/src/ng/urlUtils.js#L60
parse(url: string, base?: string) {