style: apply gofumpt
Some checks failed
ci / lint (push) Has been cancelled
ci / test (push) Has been cancelled
ci / deps (push) Has been cancelled
ci / release-check (push) Has been cancelled
ci / secrets (push) Has been cancelled

This commit is contained in:
Peter Steinberger 2026-05-08 17:21:37 +01:00
parent 436be01df4
commit c1d929922c
No known key found for this signature in database

View File

@ -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{}