mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
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
Block a user