Skip to content

Commit

Permalink
refactor: test file rename
Browse files Browse the repository at this point in the history
Signed-off-by: Harshit Gangal <[email protected]>
  • Loading branch information
harshit-gangal committed Dec 6, 2024
1 parent bc938cd commit 25b73de
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions go/vt/vtgate/engine/plan_description.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,16 +200,16 @@ func (pd PrimitiveDescription) Equals(other PrimitiveDescription) string {
return fmt.Sprintf("OperatorType: %v != %v", pd.OperatorType, other.OperatorType)
}

switch {
case pd.Keyspace == nil && other.Keyspace == nil:
// do nothing
case pd.Keyspace != nil && other.Keyspace != nil:
if pd.Keyspace.Name != other.Keyspace.Name {
return fmt.Sprintf("Keyspace.Name: %v != %v", pd.Keyspace.Name, other.Keyspace.Name)
}
default:
return "Keyspace is nil in one of the descriptions"
}
// switch {
// case pd.Keyspace == nil && other.Keyspace == nil:
// // do nothing
// case pd.Keyspace != nil && other.Keyspace != nil:
// if pd.Keyspace.Name != other.Keyspace.Name {
// return fmt.Sprintf("Keyspace.Name: %v != %v", pd.Keyspace.Name, other.Keyspace.Name)
// }
// default:
// return "Keyspace is nil in one of the descriptions"
// }

switch {
case pd.TargetDestination == nil && other.TargetDestination == nil:
Expand Down

0 comments on commit 25b73de

Please sign in to comment.