Skip to content

Commit

Permalink
chore(devs-infra): remove ! on realpath of LanguageService (#1783)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnpnl committed Jul 7, 2020
1 parent 1409274 commit 5da0da1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/language-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export const initializeLanguageServiceInstance = (configs: ConfigSet, logger: Lo
readDirectory: memoize(ts.sys.readDirectory),
getDirectories: memoize(ts.sys.getDirectories),
directoryExists: memoize(ts.sys.directoryExists),
realpath: memoize(ts.sys.realpath!), // eslint-disable-line @typescript-eslint/no-non-null-assertion
realpath: ts.sys.realpath && memoize(ts.sys.realpath),
getNewLine: () => LINE_FEED,
getCurrentDirectory: () => cwd,
getCompilationSettings: () => options,
Expand Down

0 comments on commit 5da0da1

Please sign in to comment.