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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user