fix(p3(data.go)): don't return data on err
This commit is contained in:
parent
733a318415
commit
f3a15203a6
@ -32,7 +32,7 @@ func readData(f *os.File) ([][]float64, error) {
|
||||
|
||||
data, err := parseRecords(records)
|
||||
if err != nil {
|
||||
return data, err
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return data, nil
|
||||
|
Loading…
Reference in New Issue
Block a user