Skip to content

Commit

Permalink
fix wrong error return
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Richter <[email protected]>
  • Loading branch information
dragonchaser committed Sep 6, 2024
1 parent 2477ac1 commit 6fd97ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/graph/pkg/service/v0/api_driveitem_permissions.go
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ func (s DriveItemPermissionsService) UpdatePermission(ctx context.Context, itemI
if s.config.IncludeOCMSharees {
updatePermission, err := s.updateOCMPermission(ctx, permissionID, itemID, &newPermission)
if err == nil {
return *updatePermission, err
return *updatePermission, nil
}
}
return libregraph.Permission{}, err
Expand Down

0 comments on commit 6fd97ac

Please sign in to comment.