Skip to content

Commit aa0cee8

Browse files
style: Fix TRY300 linting issue by simplifying loop logic
Co-Authored-By: Aaron <AJ> Steers <aj@airbyte.io>
1 parent 2374447 commit aa0cee8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

airbyte/_executors/python.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,8 @@ def get_installed_version(
197197
for line in output.splitlines():
198198
if line.startswith("Version:"):
199199
version = line.split(":", 1)[1].strip()
200-
break
201-
else:
202-
return None
203-
return version
200+
return version
201+
return None
204202
except Exception:
205203
if raise_on_error:
206204
raise

0 commit comments

Comments
 (0)