Skip to content

Commit

Permalink
cli: Remove duplicates from info output
Browse files Browse the repository at this point in the history
  • Loading branch information
bbhtt committed Jun 18, 2024
1 parent 72744e3 commit 1b73c25
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions flatpak_builder_lint/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,16 @@ def run_checks(
if "desktop-file-failed-validation" in set(exceptions):
results.pop("desktopfile")

results["info"] = [
i
for i in info
for j in set(exceptions)
if i is not None and not i.startswith(j)
]
results["info"] = list(
set(
[
i
for i in set(info)
for j in set(exceptions)
if i is not None and not i.startswith(j)
]
)
)
if not results["info"]:
results.pop("info")

Expand Down

0 comments on commit 1b73c25

Please sign in to comment.