mirror of https://github.com/minio/minio.git
fix: format test file with gofumpt
This commit is contained in:
parent
c16daabd12
commit
26c34b4cb7
|
@ -2100,7 +2100,12 @@ func testListObjectsV2EmptyPrefixCommonPrefix(obj ObjectLayer, instanceType stri
|
||||||
if i >= len(result.Prefixes) || result.Prefixes[i] != expectedPrefix {
|
if i >= len(result.Prefixes) || result.Prefixes[i] != expectedPrefix {
|
||||||
t.Errorf("%s: Expected prefix %d to be '%s', but got '%s'",
|
t.Errorf("%s: Expected prefix %d to be '%s', but got '%s'",
|
||||||
instanceType, i, expectedPrefix,
|
instanceType, i, expectedPrefix,
|
||||||
func() string { if i < len(result.Prefixes) { return result.Prefixes[i] }; return "<missing>" }())
|
func() string {
|
||||||
|
if i < len(result.Prefixes) {
|
||||||
|
return result.Prefixes[i]
|
||||||
|
}
|
||||||
|
return "<missing>"
|
||||||
|
}())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2112,7 +2117,12 @@ func testListObjectsV2EmptyPrefixCommonPrefix(obj ObjectLayer, instanceType stri
|
||||||
if i >= len(result.Objects) || result.Objects[i].Name != expectedObj {
|
if i >= len(result.Objects) || result.Objects[i].Name != expectedObj {
|
||||||
t.Errorf("%s: Expected object %d to be '%s', but got '%s'",
|
t.Errorf("%s: Expected object %d to be '%s', but got '%s'",
|
||||||
instanceType, i, expectedObj,
|
instanceType, i, expectedObj,
|
||||||
func() string { if i < len(result.Objects) { return result.Objects[i].Name }; return "<missing>" }())
|
func() string {
|
||||||
|
if i < len(result.Objects) {
|
||||||
|
return result.Objects[i].Name
|
||||||
|
}
|
||||||
|
return "<missing>"
|
||||||
|
}())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue