From: Alexander Melentyev Date: Sun, 31 Oct 2021 17:50:38 +0000 (+0000) Subject: testing: remove redundant type conversion X-Git-Tag: go1.18beta1~652 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=fd09e88722e0af150bf8960e95e8da500ad91001;p=gostls13.git 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 --- diff --git a/src/testing/benchmark.go b/src/testing/benchmark.go index 1ce637e137..d8ec217f66 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 {