Skip to content

Commit f299473

Browse files
committed
fix linter errors
1 parent 853b24b commit f299473

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/e2e/network/util_iperf.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ func (i *IPerfResults) ToTSV() string {
8080
// NewIPerf parses an IPerf CSV output line into an IPerfCSVResult.
8181
func NewIPerf(csvLine string) (*IPerfCSVResult, error) {
8282
if len(csvLine) == 0 {
83-
return nil, fmt.Errorf("No iperf output received in csv line")
83+
return nil, fmt.Errorf("no iperf output received in csv line")
8484
}
8585
csvLine = strings.Trim(csvLine, "\n")
8686
slice := StrSlice(strings.Split(csvLine, ","))
8787
// iperf 2.19+ reportes 15 fields, before it was just 9
8888
if len(slice) != 15 {
89-
return nil, fmt.Errorf("Incorrect fields in the output: %v (%v out of 15)", slice, len(slice))
89+
return nil, fmt.Errorf("incorrect fields in the output: %v (%v out of 15)", slice, len(slice))
9090
}
9191
i := IPerfCSVResult{}
9292
i.date = slice.get(0)
@@ -150,7 +150,7 @@ func ParseIPerf2EnhancedResultsFromCSV(output string) (*IPerf2EnhancedCSVResults
150150
}
151151
parsedResults = append(parsedResults, parsed)
152152
}
153-
if parsedResults == nil || len(parsedResults) == 0 {
153+
if len(parsedResults) == 0 {
154154
return nil, fmt.Errorf("no results parsed from iperf2 output")
155155
}
156156
// format:

0 commit comments

Comments
 (0)