go/src/image
Ayan George c844fec7f6 image/png: remove too early declaration of "n"
Before this commit, the code declares and assigns "n" with the result of
io.ReadFull() -- but the value is not used.  The variable is then reused
later in the function.

This commit removes the first declaration of "n" and declares it closer
to where it is used.

Change-Id: I7ffe19a10f2a563c306bb6fe6562493435b9dc5a
Reviewed-on: https://go-review.googlesource.com/c/go/+/232917
Reviewed-by: Rob Pike <r@golang.org>
2020-05-08 22:01:08 +00:00
..
color
draw image/draw: optimize paletted dst + uniform src 2020-04-27 23:05:16 +00:00
gif all: fix typos 2019-09-08 17:28:20 +00:00
internal/imageutil
jpeg image/jpeg: accept "\xff\x00" before a RST marker 2020-04-29 11:48:24 +00:00
png image/png: remove too early declaration of "n" 2020-05-08 22:01:08 +00:00
testdata image/gif: fix transparency loss when encoding a wrapped *image.Paletted 2019-05-22 20:41:27 +00:00
decode_example_test.go
decode_test.go image: add missing error check in test 2019-05-23 15:51:48 +00:00
format.go image: make RegisterFormat safe for concurrent use 2018-09-26 23:14:57 +00:00
geom.go image: guard against NewXxx integer overflow 2020-04-29 11:57:50 +00:00
geom_test.go
image.go image: guard against NewXxx integer overflow 2020-04-29 11:57:50 +00:00
image_test.go image: guard against NewXxx integer overflow 2020-04-29 11:57:50 +00:00
names.go image: add a NewUniform doc comment 2020-04-29 11:47:27 +00:00
ycbcr.go image: guard against NewXxx integer overflow 2020-04-29 11:57:50 +00:00
ycbcr_test.go