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 authored Sep 10, 2024
1 parent 139f1ca commit a1e6aed
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 @@ -1455,7 +1455,7 @@ def set_user_group_and_role_associations(
"""
self._ensure_model_instance_has_id(user)
if group_ids is not None:
self._set_user_groups(user, group_ids or [])
self._set_user_groups(user, group_ids)
if role_ids is not None:
self._set_user_roles(user, role_ids or [])
# Commit only if both user groups and user roles have been set.
Expand Down

0 comments on commit a1e6aed

Please sign in to comment.