Skip to content

Commit

Permalink
fix: user-manager golangci-lint修复
Browse files Browse the repository at this point in the history
  • Loading branch information
LidolLxf committed Dec 3, 2024
1 parent 9787543 commit b7c993b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit b7c993b

Please sign in to comment.