diff options
author | Quentin Smith <quentin@golang.org> | 2016-10-21 17:30:15 -0400 |
---|---|---|
committer | Quentin Smith <quentin@golang.org> | 2016-10-24 14:49:44 +0000 |
commit | 0eaa8fe03f46d9cc35d81e872b4b23442609ed80 (patch) | |
tree | 9a451166651fb4f8db8c826b1cc6d9dfb655e0d9 /src/bufio | |
parent | 7ff0c8267f25a628dc4c8b5fa356b26cbb72530d (diff) | |
download | go-0eaa8fe03f46d9cc35d81e872b4b23442609ed80.tar.gz go-0eaa8fe03f46d9cc35d81e872b4b23442609ed80.zip |
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 <quentin@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/bufio')
-rw-r--r-- | src/bufio/scan.go | 1 |
1 files changed, 0 insertions, 1 deletions
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 |