diff --git a/internal/array.go b/internal/array.go index 2936d15..02b7ac8 100644 --- a/internal/array.go +++ b/internal/array.go @@ -10,6 +10,7 @@ func LoadFileLinesIntoArray(input string) []string { if err != nil { return []string{input} } + defer file.Close() scanner := bufio.NewScanner(file) scanner.Split(bufio.ScanLines)