remove unnecessary call sourceFile.getSourceFile()

This commit is contained in:
Mohamed Hegazy
2015-01-13 09:51:47 -08:00
parent 39355985b1
commit 118b7a984a
+1 -2
View File
@@ -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(),