Skip to content

Commit

Permalink
Property is not optional. No need for optional chaining syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjhbw committed Aug 1, 2023
1 parent 76308b7 commit 5b76f27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/processTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ export async function walkTemplate(

if (ctx.gCntIf !== ctx.gCntEndIf) {
const err = new IncompleteConditionalStatementError();
if (ctx.options?.failFast) {
if (ctx.options.failFast) {
throw err;
} else {
errors.push(err);
Expand All @@ -449,7 +449,7 @@ export async function walkTemplate(
if (ctx.loops.length > 0) {
const innermost_loop = ctx.loops[ctx.loops.length - 1];
const err = new UnterminatedForLoopError(innermost_loop);
if (ctx.options?.failFast) {
if (ctx.options.failFast) {
throw err;
} else {
errors.push(err);
Expand Down

0 comments on commit 5b76f27

Please sign in to comment.