Skip to content

Commit 1efbd0c

Browse files
author
Andrei Neagu
committed
minor tip
1 parent 2c507a3 commit 1efbd0c

File tree

1 file changed

+1
-1
lines changed
  • services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/modules/outputs

1 file changed

+1
-1
lines changed

services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/modules/outputs/_event_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727

2828
def _get_first_entry_or_none(data: list[str]) -> str | None:
29-
return data[0] if len(data) > 0 else None
29+
return next(iter(data), None)
3030

3131

3232
class _PortKeysEventHandler(SafeFileSystemEventHandler):

0 commit comments

Comments
 (0)