:out-of-service is a boolean field. The previous logic would always have it return true when doing a single-read.
I believe the intention was to return true if the coercion resulted in nil, so I went with nil-checking. If that's not necessary, and nil is acceptable, then I'd back out this change and just get rid of the (or ... true) part.
:out-of-service
is a boolean field. The previous logic would always have it returntrue
when doing a single-read.I believe the intention was to return
true
if the coercion resulted innil
, so I went with nil-checking. If that's not necessary, andnil
is acceptable, then I'd back out this change and just get rid of the (or ... true) part.