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:
quobix
2023-11-17 06:25:11 -05:00
parent 8b9ef11270
commit ac80716553
3 changed files with 22 additions and 6 deletions

View File

@@ -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()
}