From fd09e88722e0af150bf8960e95e8da500ad91001 Mon Sep 17 00:00:00 2001 From: Alexander Melentyev Date: Sun, 31 Oct 2021 17:50:38 +0000 Subject: [PATCH] testing: remove redundant type conversion Change-Id: Ib6415bb09af02e9ebc0099f50bf0fd7b572f2516 GitHub-Last-Rev: ebaa849d66efa45bd8ca50a8306652d823a41678 GitHub-Pull-Request: golang/go#49244 Reviewed-on: https://go-review.googlesource.com/c/go/+/360214 Trust: Tobias Klauser Run-TryBot: Tobias Klauser TryBot-Result: Go Bot Reviewed-by: Emmanuel Odeke --- src/testing/benchmark.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/testing/benchmark.go b/src/testing/benchmark.go index 1ce637e1378..d8ec217f66c 100644 --- a/src/testing/benchmark.go +++ b/src/testing/benchmark.go @@ -45,7 +45,7 @@ func (f *durationOrCountFlag) String() string { if f.n > 0 { return fmt.Sprintf("%dx", f.n) } - return time.Duration(f.d).String() + return f.d.String() } func (f *durationOrCountFlag) Set(s string) error {