From 099b0d7c29831a11b2a97e7120cdb537f9c6bf44 Mon Sep 17 00:00:00 2001 From: johncming Date: Fri, 16 Aug 2019 16:41:01 +0800 Subject: [PATCH] template: remove redundant parentheses. (#5904) Signed-off-by: johncming --- template/template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/template.go b/template/template.go index 031bdbd8b..0a31c4e54 100644 --- a/template/template.go +++ b/template/template.go @@ -219,7 +219,7 @@ func NewTemplateExpander( seconds := int64(v) % 60 minutes := (int64(v) / 60) % 60 hours := (int64(v) / 60 / 60) % 24 - days := (int64(v) / 60 / 60 / 24) + days := int64(v) / 60 / 60 / 24 // For days to minutes, we display seconds as an integer. if days != 0 { return fmt.Sprintf("%s%dd %dh %dm %ds", sign, days, hours, minutes, seconds)