Skip to content

Commit bc92d5c

Browse files
committed
remove unused else
1 parent d29eadc commit bc92d5c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

io/decoder.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
| |
77
| io/decoder.go |
88
| |
9-
| LastModified: Feb 20, 2022 |
9+
| LastModified: Mar 18, 2022 |
1010
| Author: Ma Bingyao <[email protected]> |
1111
| |
1212
\*________________________________________________________*/
@@ -477,7 +477,8 @@ func (dec *Decoder) loadMore() bool {
477477
dec.Error = io.EOF
478478
}
479479
return false
480-
} else if dec.buf == nil {
480+
}
481+
if dec.buf == nil {
481482
dec.buf = make([]byte, defaultBufferSize)
482483
}
483484
for {

0 commit comments

Comments
 (0)