Skip to content

Commit 0a55862

Browse files
committed
build: fix lint failure
Fixes a lint failure due to a few PRs landing in at the same time where one introduces a new lint rule.
1 parent 21f2df3 commit 0a55862

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/material-experimental/mdc-list/interactive-list-base.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ export abstract class MatInteractiveListBase<T extends MatListItemBase>
8989
}
9090

9191
ngAfterViewInit() {
92-
// TODO: Replace with `ngDevMode` build time check once #20146 is available.
93-
if (isDevMode() && !this._foundation) {
92+
if ((typeof ngDevMode === 'undefined' || ngDevMode) && !this._foundation) {
9493
throw Error('MDC list foundation not initialized for Angular Material list.');
9594
}
9695

src/material-experimental/mdc-list/selection-list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export class MatSelectionList extends MatInteractiveListBase<MatListOption>
9898
const newValue = coerceBooleanProperty(value);
9999

100100
if (newValue !== this._multiple) {
101-
if (isDevMode() && this._initialized) {
101+
if ((typeof ngDevMode === 'undefined' || ngDevMode) && this._initialized) {
102102
throw new Error(
103103
'Cannot change `multiple` mode of mat-selection-list after initialization.');
104104
}

0 commit comments

Comments
 (0)