style: apply gofumpt
This commit is contained in:
parent
436be01df4
commit
c1d929922c
@ -328,12 +328,14 @@ func boolInt(v bool) int {
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func unix(t time.Time) int64 {
|
||||
if t.IsZero() {
|
||||
return 0
|
||||
}
|
||||
return t.UTC().Unix()
|
||||
}
|
||||
|
||||
func fromUnix(v int64) time.Time {
|
||||
if v <= 0 {
|
||||
return time.Time{}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user