Skip to content

Commit 2b09bb2

Browse files
authoredNov 27, 2016
Fix merge issue for promise-function-async (palantir#1792)
1 parent d46f74f commit 2b09bb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/rules/promiseFunctionAsyncRule.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ export class Rule extends Lint.Rules.TypedRule {
4040

4141
public static FAILURE_STRING = "functions that return promises must be async";
4242

43-
public applyWithProgram(sourceFile: ts.SourceFile, program: ts.Program): Lint.RuleFailure[] {
44-
return this.applyWithWalker(new PromiseAsyncWalker(sourceFile, this.getOptions(), program));
43+
public applyWithProgram(sourceFile: ts.SourceFile, langSvc: ts.LanguageService): Lint.RuleFailure[] {
44+
return this.applyWithWalker(new PromiseAsyncWalker(sourceFile, this.getOptions(), langSvc.getProgram()));
4545
}
4646
}
4747

0 commit comments

Comments
 (0)
Please sign in to comment.