Skip to content

Commit

Permalink
once again I'm dealing with go's nil != nil semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Feb 14, 2024
1 parent d1b9b63 commit addacb2
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions flow/model/qvalue/qvalue.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ func (q QValue) Equals(other QValue) bool {
return true // TODO fix
} else if q.Value == nil && other.Value == nil {
return true
} else if !q.Kind.IsArray() && q.Kind != QValueKindBytes &&
(q.Value == nil) != (other.Value == nil) {
return false
}

switch q.Kind {
Expand Down Expand Up @@ -237,10 +234,6 @@ func compareBytes(value1, value2 interface{}) bool {
}

func compareNumeric(value1, value2 interface{}) bool {
if value1 == nil && value2 == nil {
return true
}

rat1, ok1 := getRat(value1)
rat2, ok2 := getRat(value2)

Expand Down

0 comments on commit addacb2

Please sign in to comment.