From 4ed0f1436a55c8083fda990321046f12d73c92c0 Mon Sep 17 00:00:00 2001 From: Antoine Toulme Date: Fri, 25 Aug 2023 14:39:29 -0700 Subject: [PATCH] return err if not EOF --- internal/common/common.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/common/common.go b/internal/common/common.go index bad8d1f..7a31d25 100644 --- a/internal/common/common.go +++ b/internal/common/common.go @@ -128,6 +128,7 @@ func ReadLine(filename string, prefix string) (string, error) { if err == io.EOF { break } + return "", err } if strings.HasPrefix(line, prefix) { return line, nil