mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
refactor(forms): use strict equality for pending status getter
The `pending` getter in `AbstractControl` used loose equality (`==`) while all other status getters (`valid`, `invalid`, `disabled`) use strict equality (`===`). Both sides are strings so behavior is identical, but this inconsistency would fail strict linting rules.
This commit is contained in:
parent
277f9adb74
commit
ef7679b7a5
1 changed files with 1 additions and 1 deletions
|
|
@ -658,7 +658,7 @@ export abstract class AbstractControl<
|
|||
* false otherwise.
|
||||
*/
|
||||
get pending(): boolean {
|
||||
return this.status == PENDING;
|
||||
return this.status === PENDING;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue