Skip to content

Commit

Permalink
remove unused else
Browse files Browse the repository at this point in the history
  • Loading branch information
andot committed Mar 18, 2022
1 parent d29eadc commit bc92d5c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions io/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
| |
| io/decoder.go |
| |
| LastModified: Feb 20, 2022 |
| LastModified: Mar 18, 2022 |
| Author: Ma Bingyao <[email protected]> |
| |
\*________________________________________________________*/
Expand Down Expand Up @@ -477,7 +477,8 @@ func (dec *Decoder) loadMore() bool {
dec.Error = io.EOF
}
return false
} else if dec.buf == nil {
}
if dec.buf == nil {
dec.buf = make([]byte, defaultBufferSize)
}
for {
Expand Down

0 comments on commit bc92d5c

Please sign in to comment.