summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/common.go2
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
}