refactor(language-service): remove non-null assertion on MockHost member (#32666)

`nodeModulesPath` is now initialized in the constructor, so there is no
need for a non-null assertion as suggested in #24571.

PR Close #32666
This commit is contained in:
ayazhafiz 2019-09-13 09:14:33 -05:00 committed by Kara Erickson
parent c7ea3260bc
commit c442c0334f
1 changed files with 1 additions and 2 deletions

View File

@ -66,8 +66,7 @@ missingCache.set('/node_modules/@angular/forms/src/directives/form_interface.met
export class MockTypescriptHost implements ts.LanguageServiceHost {
private angularPath: string|undefined;
// TODO(issue/24571): remove '!'.
private nodeModulesPath !: string;
private nodeModulesPath: string;
private scriptVersion = new Map<string, number>();
private overrides = new Map<string, string>();
private projectVersion = 0;