mirror of
https://github.com/mgechev/revive.git
synced 2024-11-24 08:32:22 +02:00
15 lines
228 B
Go
15 lines
228 B
Go
package pkg
|
|
|
|
import "time"
|
|
|
|
func t() bool {
|
|
t := time.Now()
|
|
u := t
|
|
|
|
if !t.After(u) {
|
|
return t == u // MATCH /use t.Equal(u) instead of "==" operator/
|
|
}
|
|
|
|
return t != u // MATCH /use !t.Equal(u) instead of "!=" operator/
|
|
}
|