Skip to content

Commit 2374447

Browse files
style: Fix TRY300 linting issue by using else clause in for loop
Co-Authored-By: Aaron <AJ> Steers <aj@airbyte.io>
1 parent db02223 commit 2374447

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

airbyte/_executors/python.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ def get_installed_version(
198198
if line.startswith("Version:"):
199199
version = line.split(":", 1)[1].strip()
200200
break
201-
if version is not None:
202-
return version
203-
return None
201+
else:
202+
return None
203+
return version
204204
except Exception:
205205
if raise_on_error:
206206
raise

0 commit comments

Comments
 (0)