Skip to content

Commit

Permalink
Merge dfa76f3 into 6b22e08
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnpnl committed May 14, 2020
2 parents 6b22e08 + dfa76f3 commit 22af03b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/language-service.ts
Expand Up @@ -82,7 +82,7 @@ export const initializeLanguageServiceInstance = (
getScriptFileNames: () => [...memoryCache.files.keys()],
getScriptVersion: (fileName: string) => {
const normalizedFileName = normalize(fileName)
const version = memoryCache.files.get(normalizedFileName)!.version
const version = memoryCache.files.get(normalizedFileName)?.version

// We need to return `undefined` and not a string here because TypeScript will use
// `getScriptVersion` and compare against their own version - which can be `undefined`.
Expand Down

0 comments on commit 22af03b

Please sign in to comment.