Skip to content

Commit

Permalink
Equal bools without reflect.DeepEqual (#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
bizywizy committed Feb 28, 2024
1 parent 2347a4e commit 7795708
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vm/runtime/helpers/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ func Equal(a, b interface{}) bool {
case time.Duration:
return x == y
}
case bool:
switch y := b.(type) {
case bool:
return x == y
}
}
if IsNil(a) && IsNil(b) {
return true
Expand Down
5 changes: 5 additions & 0 deletions vm/runtime/helpers[generated].go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7795708

Please sign in to comment.