Skip to content

Commit 7795708

Browse files
authored
Equal bools without reflect.DeepEqual (#585)
1 parent 2347a4e commit 7795708

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Diff for: vm/runtime/helpers/main.go

+5
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ func Equal(a, b interface{}) bool {
125125
case time.Duration:
126126
return x == y
127127
}
128+
case bool:
129+
switch y := b.(type) {
130+
case bool:
131+
return x == y
132+
}
128133
}
129134
if IsNil(a) && IsNil(b) {
130135
return true

Diff for: vm/runtime/helpers[generated].go

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)