Skip to content

Commit

Permalink
ls2string should append if the line is not empty
Browse files Browse the repository at this point in the history
This is a fix for c270d1a
where the condition has been reversed.
  • Loading branch information
RazvanLiviuVarzaru committed Jan 10, 2025
1 parent 6ce9e3f commit 7a24564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def ls2string(rc: int, stdout: str, stderr: str) -> dict[str, str]:
ls_filenames = []
for line in stdout.strip().split("\n"):
line = line.strip()
if not line:
if line:
ls_filenames.append(line)

return {"packages": " ".join(ls_filenames)}
Expand Down

0 comments on commit 7a24564

Please sign in to comment.