Fix Close file after reading
This commit is contained in:
parent
e718dc4062
commit
b1f2ad9c91
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue