Avoid redundant break statements (#1705)

In Go, a switch-case automatically breaks on end. This makes
the break statement redundant.
This commit is contained in:
SmallCoccinelle 2021-09-08 03:23:21 +02:00 committed by GitHub
parent e7f6cb22b7
commit 4545da9af0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -209,20 +209,16 @@ func getIntCriterionWhereClause(column string, input models.IntCriterionInput) (
switch input.Modifier {
case "EQUALS", "NOT_EQUALS":
args = []interface{}{input.Value}
break
case "LESS_THAN":
args = []interface{}{input.Value}
break
case "GREATER_THAN":
args = []interface{}{input.Value}
break
case "BETWEEN", "NOT_BETWEEN":
upper := 0
if input.Value2 != nil {
upper = *input.Value2
}
args = []interface{}{input.Value, upper}
break
}
return column + " " + binding, args