From 2e57e3351be107931356789cc166f4cfdd7c3a01 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 20 Jan 2025 16:17:06 +0100 Subject: [PATCH] Remove superfluous parenthesis --- internal/reader/processor/youtube.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/reader/processor/youtube.go b/internal/reader/processor/youtube.go index 68e72ba6..c8ae1d3c 100644 --- a/internal/reader/processor/youtube.go +++ b/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) }