From 0eaa8fe03f46d9cc35d81e872b4b23442609ed80 Mon Sep 17 00:00:00 2001 From: Quentin Smith Date: Fri, 21 Oct 2016 17:30:15 -0400 Subject: [PATCH] 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 --- src/bufio/scan.go | 1 - 1 file changed, 1 deletion(-) 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 -- 2.48.1