Skip to content

Commit 4683cb5

Browse files
committed
Add assertions
1 parent af0c4ce commit 4683cb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/tslint/rules/nextLineRule.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ function walk(ctx: Lint.WalkContext<void>, checkCatch: boolean, checkElse: boole
5252
return;
5353
}
5454

55-
const tryClosingBrace = tryBlock.getLastToken(sourceFile);
56-
const catchKeyword = catchClause.getFirstToken(sourceFile);
55+
const tryClosingBrace = tryBlock.getLastToken(sourceFile)!;
56+
const catchKeyword = catchClause.getFirstToken(sourceFile)!;
5757
const tryClosingBraceLoc = sourceFile.getLineAndCharacterOfPosition(tryClosingBrace.getEnd());
5858
const catchKeywordLoc = sourceFile.getLineAndCharacterOfPosition(catchKeyword.getStart(sourceFile));
5959
if (tryClosingBraceLoc.line === catchKeywordLoc.line) {

0 commit comments

Comments
 (0)