Skip to content

Commit

Permalink
Remove "or []"
Browse files Browse the repository at this point in the history
Co-authored-by: Marius van den Beek <[email protected]>
  • Loading branch information
jdavcs and mvdbeek committed Sep 10, 2024
1 parent a1e6aed commit 43042cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/model/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -1457,7 +1457,7 @@ def set_user_group_and_role_associations(
if group_ids is not None:
self._set_user_groups(user, group_ids)
if role_ids is not None:
self._set_user_roles(user, role_ids or [])
self._set_user_roles(user, role_ids)
# Commit only if both user groups and user roles have been set.
self.sa_session.commit()

Expand Down

0 comments on commit 43042cf

Please sign in to comment.