@@ -41,15 +41,15 @@ func prepareStarData(dataSet string) (plotter.Values, plotter.Values, error) {
41
41
// Get the data set we stored in pachyderm.
42
42
data , err := getDataSet (dataSet , "master" , "godata" )
43
43
if err != nil {
44
- return plotter. Values {}, plotter. Values {} , errors .Wrap (err , "Could not get data from pachyderm" )
44
+ return nil , nil , errors .Wrap (err , "Could not get data from pachyderm" )
45
45
}
46
46
47
47
// Extract the records from the data.
48
48
reader := csv .NewReader (bytes .NewReader (data .Bytes ()))
49
49
reader .FieldsPerRecord = - 1
50
50
records , err := reader .ReadAll ()
51
51
if err != nil {
52
- return plotter. Values {}, plotter. Values {} , errors .Wrap (err , "Could not read in data records." )
52
+ return nil , nil , errors .Wrap (err , "Could not read in data records." )
53
53
}
54
54
55
55
v := make (plotter.Values , len (records ))
@@ -59,7 +59,7 @@ func prepareStarData(dataSet string) (plotter.Values, plotter.Values, error) {
59
59
for i , each := range records {
60
60
value , err := strconv .ParseFloat (each [5 ], 64 )
61
61
if err != nil {
62
- return plotter. Values {}, plotter. Values {} , errors .Wrap (err , "Could not convert value to float" )
62
+ return nil , nil , errors .Wrap (err , "Could not convert value to float" )
63
63
}
64
64
65
65
v [i ] = value
0 commit comments