Skip to content

Commit

Permalink
Handle EOF in the middle of a property
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaMahany committed Jul 18, 2024
1 parent 5bce7bd commit 410e796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ee/indexeddb/values.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func nextNonPaddingByte(srcReader io.ByteReader) (byte, error) {
nextByte, err := srcReader.ReadByte()
if err != nil {
if err == io.EOF {
return 0, nil
return 0, fmt.Errorf("did not expect EOF reading next byte: %w", err)
}
return 0, fmt.Errorf("reading next byte: %w", err)
}
Expand Down

0 comments on commit 410e796

Please sign in to comment.