From 3f0b76f26a643e7ecf80b71202f7287bb65cb38a Mon Sep 17 00:00:00 2001 From: polyfloyd Date: Thu, 25 Jan 2024 19:55:53 +0100 Subject: [PATCH] fix: Allow io.EOF from (io.ReadCloser).Read --- errorlint/allowed.go | 1 + 1 file changed, 1 insertion(+) diff --git a/errorlint/allowed.go b/errorlint/allowed.go index e43a0fd..8bfb4c9 100644 --- a/errorlint/allowed.go +++ b/errorlint/allowed.go @@ -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"},