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.
2 parents 99da534 + 3e038db commit ef9a116Copy full SHA for ef9a116
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