From eaa7d9ff86b35c72cc35bd7c14b349fa414c392f Mon Sep 17 00:00:00 2001 From: hxzhouh Date: Fri, 31 May 2024 23:45:26 +0800 Subject: [PATCH] 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 --- src/time/internal_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.48.1