We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af0c4ce commit 4683cb5Copy full SHA for 4683cb5
1 file changed
scripts/tslint/rules/nextLineRule.ts
@@ -52,8 +52,8 @@ function walk(ctx: Lint.WalkContext<void>, checkCatch: boolean, checkElse: boole
52
return;
53
}
54
55
- const tryClosingBrace = tryBlock.getLastToken(sourceFile);
56
- const catchKeyword = catchClause.getFirstToken(sourceFile);
+ const tryClosingBrace = tryBlock.getLastToken(sourceFile)!;
+ const catchKeyword = catchClause.getFirstToken(sourceFile)!;
57
const tryClosingBraceLoc = sourceFile.getLineAndCharacterOfPosition(tryClosingBrace.getEnd());
58
const catchKeywordLoc = sourceFile.getLineAndCharacterOfPosition(catchKeyword.getStart(sourceFile));
59
if (tryClosingBraceLoc.line === catchKeywordLoc.line) {
0 commit comments