mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-07 20:47:45 +00:00
A few small bugfixes discovered from online users of openapi-changes
someone caused a panic, exposed an untested bug. Signed-off-by: quobix <dave@quobix.com>
This commit is contained in:
@@ -823,6 +823,9 @@ func AreEqual(l, r Hashable) bool {
|
||||
if l == nil || r == nil {
|
||||
return false
|
||||
}
|
||||
if reflect.ValueOf(l).IsNil() || reflect.ValueOf(r).IsNil() {
|
||||
return false
|
||||
}
|
||||
return l.Hash() == r.Hash()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user