From: hxzhouh Date: Fri, 31 May 2024 15:45:26 +0000 (+0800) Subject: time: time/internal_test.go remove redundant type conversion X-Git-Tag: go1.23rc1~94 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=eaa7d9ff86b35c72cc35bd7c14b349fa414c392f;p=gostls13.git time: time/internal_test.go remove redundant type conversion Change-Id: I5aaea4918f024a87146ba54a8d5307658d722fe9 Reviewed-on: https://go-review.googlesource.com/c/go/+/589635 Auto-Submit: Ian Lance Taylor Reviewed-by: hui zhou Reviewed-by: Ian Lance Taylor LUCI-TryBot-Result: Go LUCI Reviewed-by: Michael Knyszek --- diff --git a/src/time/internal_test.go b/src/time/internal_test.go index 619f605ae7..ef82d4acfb 100644 --- a/src/time/internal_test.go +++ b/src/time/internal_test.go @@ -47,7 +47,7 @@ func CheckRuntimeTimerPeriodOverflow() { // We manually create a runtimeTimer with huge period, but that expires // immediately. The public Timer interface would require waiting for // the entire period before the first update. - t := (*Timer)(newTimer(runtimeNano(), 1<<63-1, empty, nil, nil)) + t := newTimer(runtimeNano(), 1<<63-1, empty, nil, nil) defer t.Stop() // If this test fails, we will either throw (when siftdownTimer detects