Skip to content

Commit

Permalink
refactor: if condition always false
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Taylor <andres@planetscale.com>
  • Loading branch information
systay committed May 24, 2024
1 parent 72e6d63 commit 7af4f5f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions go/vt/vtgate/planbuilder/ddl.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,6 @@ func buildCreateViewCommon(
sqlparser.RemoveKeyspace(ddl)

if vschema.IsViewsEnabled() {
if keyspace == nil {
return nil, nil, vterrors.VT09005()
}
return destination, keyspace, nil
}
isRoutePlan, opCode := tryToGetRoutePlan(selectPlan.primitive)
Expand Down

0 comments on commit 7af4f5f

Please sign in to comment.