Skip to content

Commit 42e805b

Browse files
committed
internal/rule: simplify switch true {...} to switch {...}
Signed-off-by: Iskander Sharipov <[email protected]>
1 parent 9314865 commit 42e805b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/rule/squashjoins.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,7 @@ func removeRedundantCompoundFilters(
11851185
// isRedundantFilter tells whether the given filter is redundant for joining
11861186
// t1 with t2. t1 MUST be higher in the table hierarchy than t2.
11871187
func isRedundantFilter(f sql.Expression, t1, t2 string) bool {
1188-
switch true {
1188+
switch {
11891189
case t1 == gitbase.RepositoriesTableName && t2 == gitbase.RemotesTableName:
11901190
return isEq(
11911191
isCol(gitbase.RepositoriesTableName, "repository_id"),

0 commit comments

Comments
 (0)