]> Cypherpunks repositories - gostls13.git/commitdiff
bufio: Remove unneeded error initialization
authorSilvan Jegen <s.jegen@gmail.com>
Tue, 13 Jan 2015 20:41:23 +0000 (21:41 +0100)
committerIan Lance Taylor <iant@golang.org>
Sat, 18 Jul 2015 18:05:23 +0000 (18:05 +0000)
The default value for error is nil so there is no need to assign this
value here.

Change-Id: I4714ef7607996ccbf91b704390e1d1d39ee3847b
Reviewed-on: https://go-review.googlesource.com/12355
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/bufio/bufio.go

index dbbe80e4c2aed376c270e13c1b96d45d13f8d17b..3bbb933df3569886ade4c370144d08ae63101c86 100644 (file)
@@ -400,7 +400,6 @@ func (b *Reader) ReadBytes(delim byte) (line []byte, err error) {
        // accumulating full buffers.
        var frag []byte
        var full [][]byte
-       err = nil
 
        for {
                var e error