From: Quentin Smith Date: Fri, 21 Oct 2016 21:30:15 +0000 (-0400) Subject: bufio: remove unnecessary "continue" X-Git-Tag: go1.8beta1~701 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0eaa8fe03f46d9cc35d81e872b4b23442609ed80;p=gostls13.git bufio: remove unnecessary "continue" After resizing the scan buffer, we can immediately read into the newly-resized buffer since we know there is now space. Fixes #15712. Change-Id: I56fcfaeb67045ee753a012c37883aa7c81b6e877 Reviewed-on: https://go-review.googlesource.com/31715 Run-TryBot: Quentin Smith TryBot-Result: Gobot Gobot Reviewed-by: Russ Cox --- diff --git a/src/bufio/scan.go b/src/bufio/scan.go index 27a0f00459..9f741c9830 100644 --- a/src/bufio/scan.go +++ b/src/bufio/scan.go @@ -199,7 +199,6 @@ func (s *Scanner) Scan() bool { s.buf = newBuf s.end -= s.start s.start = 0 - continue } // Finally we can read some input. Make sure we don't get stuck with // a misbehaving Reader. Officially we don't need to do this, but let's