1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-01 17:38:37 +00:00

Remove superfluous parenthesis

This commit is contained in:
jvoisin 2025-01-20 16:17:06 +01:00 committed by Frédéric Guillot
parent a412cde3b3
commit 2e57e3351b

View file

@ -151,11 +151,11 @@ func parseISO8601(from string) (time.Duration, error) {
switch name { switch name {
case "hour": case "hour":
d += (time.Duration(val) * time.Hour) d += time.Duration(val) * time.Hour
case "minute": case "minute":
d += (time.Duration(val) * time.Minute) d += time.Duration(val) * time.Minute
case "second": case "second":
d += (time.Duration(val) * time.Second) d += time.Duration(val) * time.Second
default: default:
return 0, fmt.Errorf("unknown field %s", name) return 0, fmt.Errorf("unknown field %s", name)
} }