We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
switch true {...}
switch {...}
1 parent 9314865 commit 42e805bCopy full SHA for 42e805b
internal/rule/squashjoins.go
@@ -1185,7 +1185,7 @@ func removeRedundantCompoundFilters(
1185
// isRedundantFilter tells whether the given filter is redundant for joining
1186
// t1 with t2. t1 MUST be higher in the table hierarchy than t2.
1187
func isRedundantFilter(f sql.Expression, t1, t2 string) bool {
1188
- switch true {
+ switch {
1189
case t1 == gitbase.RepositoriesTableName && t2 == gitbase.RemotesTableName:
1190
return isEq(
1191
isCol(gitbase.RepositoriesTableName, "repository_id"),
0 commit comments