diff --git a/p3/data.go b/p3/data.go index 81938a5..0da0df9 100644 --- a/p3/data.go +++ b/p3/data.go @@ -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