mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
Return undefined instead of null.
This commit is contained in:
parent
4083d9299b
commit
797ab01467
@ -1411,7 +1411,7 @@ module ts {
|
||||
return {
|
||||
getSourceFile: (filename, languageVersion) => {
|
||||
var sourceFile = getSourceFile(filename);
|
||||
return sourceFile ? sourceFile.getSourceFile() : null;
|
||||
return sourceFile && sourceFile.getSourceFile();
|
||||
},
|
||||
getCancellationToken: () => cancellationToken,
|
||||
getCanonicalFileName: (filename) => useCaseSensitivefilenames ? filename : filename.toLowerCase(),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user