From 171394a7d0d133b9e45b95693cfca22cf04b2fff Mon Sep 17 00:00:00 2001 From: Max Inden Date: Thu, 22 Jun 2023 12:02:28 +0900 Subject: [PATCH] fix(https): remove obsolete int(z.n) conversion --- perf/impl/https/v0.1/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perf/impl/https/v0.1/main.go b/perf/impl/https/v0.1/main.go index 368d04419..3ee3589e2 100644 --- a/perf/impl/https/v0.1/main.go +++ b/perf/impl/https/v0.1/main.go @@ -82,7 +82,7 @@ func (z *zeroReader) Read(p []byte) (n int, err error) { // calculate the number of zeros to write n = len(p) if n > z.n { - n = int(z.n) + n = z.n } if n > len(zeroSlice) { n = len(zeroSlice)