mirror of
https://github.com/golang/go
synced 2024-11-24 06:40:17 -07:00
testing: remove redundant type conversion
Change-Id: Ib6415bb09af02e9ebc0099f50bf0fd7b572f2516
GitHub-Last-Rev: ebaa849d66
GitHub-Pull-Request: golang/go#49244
Reviewed-on: https://go-review.googlesource.com/c/go/+/360214
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
This commit is contained in:
parent
3fa9ee49a0
commit
fd09e88722
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user