Fix Close file after reading

This commit is contained in:
Andreas Mieke 2020-03-22 00:01:08 +01:00
parent e718dc4062
commit b1f2ad9c91

View file

@ -18,6 +18,7 @@ func ParseFile(file string) ([]CsvLine, error) {
if err != nil {
return nil, err
}
defer csvfile.Close()
r := csv.NewReader(csvfile)
var lines []CsvLine