From 4545da9af0f9dfae498f4690147d3027aed81eb5 Mon Sep 17 00:00:00 2001 From: SmallCoccinelle <89733524+SmallCoccinelle@users.noreply.github.com> Date: Wed, 8 Sep 2021 03:23:21 +0200 Subject: [PATCH] Avoid redundant break statements (#1705) In Go, a switch-case automatically breaks on end. This makes the break statement redundant. --- pkg/sqlite/sql.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/sqlite/sql.go b/pkg/sqlite/sql.go index b3bcdd514..7c9477bdc 100644 --- a/pkg/sqlite/sql.go +++ b/pkg/sqlite/sql.go @@ -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