Skip to content

Commit

Permalink
expfmt: only ignore io.EOF errors in TextParse.startOfLine
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Bursavich <abursavich@gmail.com>
  • Loading branch information
abursavich committed Feb 9, 2023
1 parent f9c1994 commit ad987bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion expfmt/text_parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ func (p *TextParser) startOfLine() stateFn {
if p.skipBlankTab(); p.err != nil {
// End of input reached. This is the only case where
// that is not an error but a signal that we are done.
p.err = nil
if p.err == io.EOF {
p.err = nil
}
return nil
}
switch p.currentByte {
Expand Down

0 comments on commit ad987bb

Please sign in to comment.