]> Cypherpunks repositories - gostls13.git/commit
image/gif: simplify blockReader.Read.
authorRob Pike <r@golang.org>
Tue, 24 May 2011 01:02:44 +0000 (11:02 +1000)
committerRob Pike <r@golang.org>
Tue, 24 May 2011 01:02:44 +0000 (11:02 +1000)
commit4c945c2cfc29ccc607f2f606053953813cd0c4b6
treef65420048ff1dbb3b4b0782691f6d4b454da19c1
parentf5a011dd0c77a844187978b42ea51fa90b4eed71
image/gif: simplify blockReader.Read.
Inverting the tests avoids recursion and simplifies the flow.

R=nigeltao
CC=golang-dev
https://golang.org/cl/4551057
src/pkg/image/gif/reader.go