diff --git a/cmd/serve/s3/utils.go b/cmd/serve/s3/utils.go index 1621c0c5a4246..547320b73ee29 100644 --- a/cmd/serve/s3/utils.go +++ b/cmd/serve/s3/utils.go @@ -69,9 +69,8 @@ func getFileHash(node interface{}) string { return "" } return h.Sums()[Opt.hashType] - } else { - o = fsObj } + o = fsObj case fs.Object: o = b }