From b1f015c0bfda84b71aca5090eb164bfab443f69d Mon Sep 17 00:00:00 2001 From: Saw-jan Date: Mon, 25 Sep 2023 12:17:32 +0545 Subject: [PATCH] fix lint - drop else block --- cmd/serve/s3/utils.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 }