🐛 Fix unexpected exception on time equiv impl.

This commit is contained in:
Andrey Antukh 2022-01-17 17:48:42 +01:00 committed by Alonso Torres
parent 2aeded1940
commit 1d174a4379
3 changed files with 13 additions and 16 deletions

View file

@ -106,11 +106,15 @@
(extend-protocol IEquiv
DateTime
(-equiv [it other]
(.equals it other))
(if other
(.equals it other)
false))
Duration
(-equiv [it other]
(.equals it other)))
(if other
(.equals it other)
false)))
(extend-protocol Inst
DateTime