Skip to content

Commit

Permalink
Fix compile error (palantir#2380)
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-hanson authored and AJamesPhillips committed Mar 23, 2017
1 parent 7545247 commit 4714480
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rules/returnUndefinedRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ export class Rule extends Lint.Rules.TypedRule {
public static FAILURE_STRING_VOID_RETURN =
"`void` function should use `return;`, not `return undefined;`.";

public applyWithProgram(sourceFile: ts.SourceFile, langSvc: ts.LanguageService): Lint.RuleFailure[] {
return this.applyWithFunction(sourceFile, (ctx) => walk(ctx, langSvc.getProgram().getTypeChecker()));
public applyWithProgram(sourceFile: ts.SourceFile, program: ts.Program): Lint.RuleFailure[] {
return this.applyWithFunction(sourceFile, (ctx) => walk(ctx, program.getTypeChecker()));
}
}

Expand Down

0 comments on commit 4714480

Please sign in to comment.