Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Commit

Permalink
Fix build (palantir#1920)
Browse files Browse the repository at this point in the history
Rename shadowed variable fileText to pass build.

Ref: palantir#1919
  • Loading branch information
ajafff authored and nchen63 committed Dec 23, 2016
1 parent 35dcc41 commit e4d897b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ export function runTest(testDirectory: string, rulesDirectory?: string | string[
getNewLine: () => "\n",
getSourceFile(filenameToGet: string) {
if (filenameToGet === this.getDefaultLibFileName()) {
const fileText = fs.readFileSync(ts.getDefaultLibFilePath(compilerOptions)).toString();
return ts.createSourceFile(filenameToGet, fileText, compilerOptions.target);
const fileContent = fs.readFileSync(ts.getDefaultLibFilePath(compilerOptions)).toString();
return ts.createSourceFile(filenameToGet, fileContent, compilerOptions.target);
} else if (filenameToGet === fileCompileName) {
return ts.createSourceFile(fileBasename, fileTextWithoutMarkup, compilerOptions.target, true);
} else if (fs.existsSync(path.resolve(path.dirname(fileToLint), filenameToGet))) {
Expand Down

0 comments on commit e4d897b

Please sign in to comment.