Skip to content

Commit

Permalink
Use continue, not break
Browse files Browse the repository at this point in the history
  • Loading branch information
jace-ys authored and jace-ys committed Oct 24, 2022
1 parent 5166229 commit 523e2aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/poetry/utils/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def find_distribution_files_with_suffix(
name=distribution_name, writable_only=writable_only
):
if not distribution.files:
break
continue

for file in distribution.files:
if file.name.endswith(suffix):
Expand All @@ -344,7 +344,7 @@ def find_distribution_files_with_name(
name=distribution_name, writable_only=writable_only
):
if not distribution.files:
break
continue

for file in distribution.files:
if file.name == name:
Expand Down Expand Up @@ -377,7 +377,7 @@ def remove_distribution_files(self, distribution_name: str) -> list[Path]:
name=distribution_name, writable_only=True
):
if not distribution.files:
break
continue

for file in distribution.files:
path = Path(
Expand Down

0 comments on commit 523e2aa

Please sign in to comment.