Closed ainar-g closed 3 years ago
(Following the discussion in dominikh/go-tools#995.)
Unless the intention of the programmer was to check if the system's wall clock went backwards, code like:
t1.UnixNano() >= t2.UnixNano()
Should be simplified to:
!t1.Before(t2)
Same with other operators.
I think I could write this check myself, but I'm not sure when I will have the time to do it.
Sounds good to me.
(Following the discussion in dominikh/go-tools#995.)
Unless the intention of the programmer was to check if the system's wall clock went backwards, code like:
Should be simplified to:
Same with other operators.
I think I could write this check myself, but I'm not sure when I will have the time to do it.