Skip to content

Commit

Permalink
minor change in creating error response
Browse files Browse the repository at this point in the history
  • Loading branch information
kian99 committed Aug 22, 2024
1 parent e944c71 commit 0b38d20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/rebac_admin/groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,8 @@ func (s *groupsService) PatchGroupEntitlements(ctx context.Context, groupId stri
toRemove = append(toRemove, t)
}
}
if len(errList) > 0 {
return false, stderrors.Join(errList...)
if err := stderrors.Join(errList...); err != nil {
return false, err
}
if toAdd != nil {
err := s.jimm.AddRelation(ctx, user, toAdd)
Expand Down

0 comments on commit 0b38d20

Please sign in to comment.