fix(p3(data.go)): don't return data on err

This commit is contained in:
leo 2023-03-15 19:52:46 +01:00
parent 733a318415
commit f3a15203a6
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

@ -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