diff options
| -rw-r--r-- | common/common.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/common.go b/common/common.go index 1156ee8..4f7d91a 100644 --- a/common/common.go +++ b/common/common.go @@ -29,7 +29,7 @@ func FileAsLines(file string) ([]string, error) { content, err := io.ReadAll(f) if err != nil { return nil, err } - lines := strings.Split(string(content), "\n") + lines := strings.Split(strings.TrimSuffix(string(content), "\n"), "\n") return lines, nil } |