Skip to content

Commit

Permalink
small fix for containsValue (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpantyukhin authored Feb 4, 2020
1 parent 485d70d commit da97be5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion match.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,9 @@ func removeValue(vals []reflect.Value, val reflect.Value) []reflect.Value {
}

func containsValue(vals []reflect.Value, val reflect.Value) bool {
valInterface := val.Interface()
for _, v := range vals {
if val.Interface() == v.Interface() {
if valInterface == v.Interface() {
return true
}
}
Expand Down

0 comments on commit da97be5

Please sign in to comment.