Skip to content

Commit

Permalink
fix useless walrus
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Nov 12, 2024
1 parent 174f29f commit 51ff265
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions backend/hub/social_adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,7 @@ def get_user_for_org(user, user_token: str, user_role: str):
ngo_group: Group = Group.objects.get(name=user_role)
user.groups.add(ngo_group)

if not (org := user.organization):
org = None

return org
return user.organization


def update_user_information(user: User, token: str):
Expand Down

0 comments on commit 51ff265

Please sign in to comment.