Skip to content

Commit

Permalink
remove useless else
Browse files Browse the repository at this point in the history
  • Loading branch information
Adibuer-lab committed Jun 27, 2024
1 parent 3a2d8ff commit 59599f8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/users/src/users_service/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,6 @@ def get_random_user(count: int, retry_count, retry_limit:Optional[int]=3) -> Lis
else:
current_app.logger.error("No unclaimed users found after multiple retries.")
return []
else:
random_retry = 0
return random.sample(unclaimed_users, min(count, len(unclaimed_users)))

def get_unclaimed_users(query: Optional[Dict[str, Any]] = None) -> List[User]:
Expand Down

0 comments on commit 59599f8

Please sign in to comment.