Fix lint issues in connect v1 resolvers

Drop the redundant embedded Resolver selector flagged by staticcheck
(QF1008) in the membership and organization permission resolvers, and
add the whitespace wsl_v5 expects around the attribute range loop and
the final return in permission.

Signed-off-by: Sacha Al Himdani <sacha@probo.com>
This commit is contained in:
Sacha Al Himdani
2026-07-08 22:02:31 +02:00
parent 86c45875a4
commit 83e7b3bdd4
3 changed files with 4 additions and 2 deletions

View File

@@ -359,7 +359,7 @@ func (r *organizationResolver) Viewer(ctx context.Context, obj *types.Organizati
// Permission is the resolver for the permission field.
func (r *organizationResolver) Permission(ctx context.Context, obj *types.Organization, action string, attributes map[string]any) (bool, error) {
return r.Resolver.permission(ctx, obj, action, attributes)
return r.permission(ctx, obj, action, attributes)
}
// Organization returns schema.OrganizationResolver implementation.