Skip to content

Commit 5ff53bb

Browse files
committed
Remove unnecessary list wrap
1 parent 9f23fcb commit 5ff53bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tlo/notify.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def dispatch(self, notification_key, data=None):
5757
:param data: Optional data to pass to each listener.
5858
"""
5959
if notification_key in self.listeners:
60-
for listener in list(self.listeners[notification_key]):
60+
for listener in self.listeners[notification_key]:
6161
listener(data)
6262

6363

0 commit comments

Comments
 (0)