Skip to content

Commit

Permalink
return err if not EOF
Browse files Browse the repository at this point in the history
  • Loading branch information
atoulme committed Aug 25, 2023
1 parent ca71a6d commit 4ed0f14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4ed0f14

Please sign in to comment.