Skip to content

Commit

Permalink
Use ReadSlice instead of ReadString
Browse files Browse the repository at this point in the history
  • Loading branch information
ISauve committed Nov 12, 2021
1 parent 8f8129f commit b4103c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ func PathExistsWithContents(filename string) bool {
defer f.Close()

r := bufio.NewReader(f)
_, err = r.ReadString('\n')
_, err = r.ReadSlice('\n')
if err != nil {
return false
}
Expand Down

0 comments on commit b4103c5

Please sign in to comment.