From e151db3e065eea8a13fd2bc83aafb6959edd6fca Mon Sep 17 00:00:00 2001 From: Jes Cok Date: Mon, 28 Jul 2025 11:36:17 +0000 Subject: all: omit unnecessary type conversions Found by github.com/mdempsky/unconvert Change-Id: Ib78cceb718146509d96dbb6da87b27dbaeba1306 GitHub-Last-Rev: dedf354811701ce8920c305b6f7aa78914a4171c GitHub-Pull-Request: golang/go#74771 Reviewed-on: https://go-review.googlesource.com/c/go/+/690735 Reviewed-by: Mark Freeman LUCI-TryBot-Result: Go LUCI Reviewed-by: Keith Randall Auto-Submit: Keith Randall Reviewed-by: Keith Randall --- src/sync/map_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sync') diff --git a/src/sync/map_test.go b/src/sync/map_test.go index 05c81354c8..0d6690c746 100644 --- a/src/sync/map_test.go +++ b/src/sync/map_test.go @@ -161,7 +161,7 @@ func TestConcurrentRange(t *testing.T) { m := new(sync.Map) for n := int64(1); n <= mapSize; n++ { - m.Store(n, int64(n)) + m.Store(n, n) } done := make(chan struct{}) -- cgit v1.3