Browse Source

Remove superfluous parenthesis

jvoisin 1 year ago
parent
commit
2e57e3351b
1 changed files with 3 additions and 3 deletions
  1. 3 3
      internal/reader/processor/youtube.go

+ 3 - 3
internal/reader/processor/youtube.go

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