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:
parent
a412cde3b3
commit
2e57e3351b
1 changed files with 3 additions and 3 deletions
|
@ -151,11 +151,11 @@ func parseISO8601(from string) (time.Duration, error) {
|
|||
|
||||
switch name {
|
||||
case "hour":
|
||||
d += (time.Duration(val) * time.Hour)
|
||||
d += time.Duration(val) * time.Hour
|
||||
case "minute":
|
||||
d += (time.Duration(val) * time.Minute)
|
||||
d += time.Duration(val) * time.Minute
|
||||
case "second":
|
||||
d += (time.Duration(val) * time.Second)
|
||||
d += time.Duration(val) * time.Second
|
||||
default:
|
||||
return 0, fmt.Errorf("unknown field %s", name)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue