Skip to content

Commit

Permalink
Remove useless enumerate
Browse files Browse the repository at this point in the history
  • Loading branch information
brichet committed Oct 10, 2024
1 parent a6aeb86 commit a38c80e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/jupyter-server-ydoc/jupyter_server_ydoc/rooms.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def _on_awareness_change(self, type: str, changes: tuple[dict[str, Any], Any]) -
return
added_users = changes[0]["added"]
removed_users = changes[0]["removed"]
for _, user in enumerate(added_users):
for user in added_users:
u = self.awareness.states[user]
if "user" in u:
name = u["user"]["name"]
Expand Down

0 comments on commit a38c80e

Please sign in to comment.