From 47460f57af5464a68b999ff0d281574e1602ae6b Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Tue, 21 Mar 2017 08:23:04 +0100 Subject: [PATCH] chore: remove leftover expression This is a follow-up to #2849. It looks like I was a little too quick to switch the statement and forgot to remove the `typeof`. --- src/lib/core/compatibility/compatibility.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/core/compatibility/compatibility.ts b/src/lib/core/compatibility/compatibility.ts index 7bb8ee9eea1d..b522387eabba 100644 --- a/src/lib/core/compatibility/compatibility.ts +++ b/src/lib/core/compatibility/compatibility.ts @@ -171,7 +171,7 @@ export class CompatibilityModule { } constructor(@Optional() @Inject(DOCUMENT) document: any) { - if (isDevMode() && typeof document && !document.doctype) { + if (isDevMode() && document && !document.doctype) { console.warn( 'Current document does not have a doctype. This may cause ' + 'some Angular Material components not to behave as expected.'