mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
remove unnecessary call sourceFile.getSourceFile()
This commit is contained in:
1 parent
39355985b1
commit
118b7a984a
1 file changed
+1
-2
@@ -1956,8 +1956,7 @@ module ts {
|
||||
function createCompilerHost(): CompilerHost {
|
||||
return {
|
||||
getSourceFile: (filename, languageVersion) => {
|
||||
var sourceFile = getSourceFile(filename);
|
||||
return sourceFile && sourceFile.getSourceFile();
|
||||
return getSourceFile(filename);
|
||||
},
|
||||
getCancellationToken: () => cancellationToken,
|
||||
getCanonicalFileName: (filename) => useCaseSensitivefilenames ? filename : filename.toLowerCase(),
|
||||
|
||||
Reference in new issue
Block a user