fix: format test file with gofumpt

This commit is contained in:
max-ts0gt 2025-07-23 13:30:21 +09:00
parent c16daabd12
commit 26c34b4cb7
1 changed files with 21 additions and 11 deletions

View File

@ -2100,7 +2100,12 @@ func testListObjectsV2EmptyPrefixCommonPrefix(obj ObjectLayer, instanceType stri
if i >= len(result.Prefixes) || result.Prefixes[i] != expectedPrefix {
t.Errorf("%s: Expected prefix %d to be '%s', but got '%s'",
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 {
t.Errorf("%s: Expected object %d to be '%s', but got '%s'",
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>"
}())
}
}