Skip to content

Commit ef9a116

Browse files
authored
Merge pull request #504 from Quasilyte/quasilyte/switchTrue
internal/rule: simplify `switch true {...}` to `switch {...}`
2 parents 99da534 + 3e038db commit ef9a116

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)