Skip to content

Commit d9d83a7

Browse files
committed
lint
1 parent 76fc949 commit d9d83a7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

liquid/tags/if.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,10 @@ func parseIfCondition(markup string, parseContext liquid.ParseContextInterface)
253253
}
254254

255255
// Chain with the next operator
256-
if part.nextOp == "or" {
256+
switch part.nextOp {
257+
case "or":
257258
newCondition.Or(condition)
258-
} else if part.nextOp == "and" {
259+
case "and":
259260
newCondition.And(condition)
260261
}
261262
condition = newCondition

0 commit comments

Comments
 (0)