Skip to content

Commit

Permalink
fix(https): remove obsolete int(z.n) conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
mxinden committed Jun 22, 2023
1 parent 2296d8c commit 171394a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perf/impl/https/v0.1/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 171394a

Please sign in to comment.