Skip to content

Commit

Permalink
chore: fix linter error (ineffective assign)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h committed May 8, 2023
1 parent 5603fc3 commit 64dcc0c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion parser/v2/templelementparser.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ func (p templElementExpressionParser) Parse(pi *parse.Input) (r TemplElementExpr
}

// Once we've got a start expression, check to see if there's an open brace for children. {\n.
_, hasOpenBrace, err := openBraceWithOptionalPadding.Parse(pi)
var hasOpenBrace bool
_, hasOpenBrace, err = openBraceWithOptionalPadding.Parse(pi)
if err != nil {
return
}
if !hasOpenBrace {
return r, true, nil
}
Expand Down

0 comments on commit 64dcc0c

Please sign in to comment.