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