Преглед изворни кода

Remove superfluous parenthesis

jvoisin пре 1 година
родитељ
комит
2e57e3351b
1 измењених фајлова са 3 додато и 3 уклоњено
  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 {
 		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)
 		}