mirror of https://github.com/minio/minio.git
Fix shadowing issue reported by go vet (#5590)
This commit is contained in:
parent
9af254a82f
commit
6faa1ef11a
|
@ -165,9 +165,9 @@ func getTotalSizes(argPatterns []ellipses.ArgPattern) []uint64 {
|
|||
func parseEndpointSet(args ...string) (ep endpointSet, err error) {
|
||||
var argPatterns = make([]ellipses.ArgPattern, len(args))
|
||||
for i, arg := range args {
|
||||
patterns, err := ellipses.FindEllipsesPatterns(arg)
|
||||
if err != nil {
|
||||
return endpointSet{}, err
|
||||
patterns, perr := ellipses.FindEllipsesPatterns(arg)
|
||||
if perr != nil {
|
||||
return endpointSet{}, perr
|
||||
}
|
||||
argPatterns[i] = patterns
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue