Skip to content

Commit

Permalink
fix: Allow io.EOF from (io.ReadCloser).Read
Browse files Browse the repository at this point in the history
  • Loading branch information
polyfloyd committed Jan 25, 2024
1 parent 92bc3b7 commit 3f0b76f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions errorlint/allowed.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ var allowedErrors = []struct {
{err: "io.EOF", fun: "debug/elf.Open"},
{err: "io.EOF", fun: "debug/elf.NewFile"},
// pkg/io
{err: "io.EOF", fun: "(io.ReadCloser).Read"},
{err: "io.EOF", fun: "(io.Reader).Read"},
{err: "io.EOF", fun: "(io.ReaderAt).ReadAt"},
{err: "io.EOF", fun: "(*io.LimitedReader).Read"},
Expand Down

0 comments on commit 3f0b76f

Please sign in to comment.