From b7c993bc1a5c277c37535f28a86d548c099d225c Mon Sep 17 00:00:00 2001 From: LidolLxf <13660354959@163.com> Date: Wed, 20 Nov 2024 17:49:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20user-manager=20golangci-lint=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/user-manager/v1http/permission/verify.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bcs-services/bcs-user-manager/app/user-manager/v1http/permission/verify.go b/bcs-services/bcs-user-manager/app/user-manager/v1http/permission/verify.go index 3b3744cf72..1742e63fbf 100644 --- a/bcs-services/bcs-user-manager/app/user-manager/v1http/permission/verify.go +++ b/bcs-services/bcs-user-manager/app/user-manager/v1http/permission/verify.go @@ -498,7 +498,8 @@ func (cli *PermVerifyClient) verifyClientNSScopedPermission(ctx context.Context, } // getProjectFromResource -func (cli *PermVerifyClient) getProjectFromResource(ctx context.Context, resource ClusterResource) (*component.Project, error) { +func (cli *PermVerifyClient) getProjectFromResource( + ctx context.Context, resource ClusterResource) (*component.Project, error) { if resource.ClusterID == "" { return nil, fmt.Errorf("resource clusterID is null") }