cleanup mc to use 'go' errs to be 'e' (#4450)

This commit is contained in:
Harshavardhana
2023-01-24 02:03:57 -08:00
committed by GitHub
parent 468fc49d0f
commit 34a67cb169
32 changed files with 198 additions and 268 deletions
+3 -3
View File
@@ -328,9 +328,9 @@ func getCSVHeader(sourceURL string, encKeyDB map[string][]prefixSSEPair) ([]stri
}
}
br := bufio.NewReader(r)
line, _, err := br.ReadLine()
if err != nil {
return nil, probe.NewError(err)
line, _, e := br.ReadLine()
if e != nil {
return nil, probe.NewError(e)
}
return strings.Split(string(line), ","), nil
}