From a10729b3ff03fa62c93551c0afae3ecd11964bdf Mon Sep 17 00:00:00 2001 From: jonaustin09 Date: Thu, 6 Jul 2023 19:14:01 +0400 Subject: [PATCH] fix: Fixed staticcheck error --- s3api/middlewares/authentication.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/s3api/middlewares/authentication.go b/s3api/middlewares/authentication.go index 41bf6496..bd9674be 100644 --- a/s3api/middlewares/authentication.go +++ b/s3api/middlewares/authentication.go @@ -51,8 +51,8 @@ func VerifyV4Signature(root RootUserConfig, iam auth.IAMService, region string, // Check the signature version authParts := strings.Split(authorization, ",") - for _, el := range authParts { - el = strings.TrimSpace(el) + for i, el := range authParts { + authParts[i] = strings.TrimSpace(el) } if len(authParts) != 3 {