Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Commit

Permalink
use .pos instead of .getStart
Browse files Browse the repository at this point in the history
  • Loading branch information
rrogowski committed Mar 5, 2019
1 parent b106d29 commit 72885ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/noStringThrowRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function walk(ctx: Lint.WalkContext<void>): void {
if (numCharactersBetweenTokens === 0) {
const token = node.getFirstToken() as ts.Node;
if (token !== undefined && token.kind === ts.SyntaxKind.ThrowKeyword) {
fix.push(Lint.Replacement.appendText(expression.getStart(sourceFile), " "));
fix.push(Lint.Replacement.appendText(expression.pos, " "));
}
}

Expand Down

0 comments on commit 72885ee

Please sign in to comment.