diff --git a/.pylintrc b/.pylintrc index 57a45cc..e2f5b68 100644 --- a/.pylintrc +++ b/.pylintrc @@ -2,8 +2,8 @@ ignore=importers -[MESSAGES CONTROL] +[MESSAGES CONTROL] disable=raw-checker-failed, bad-inline-option, diff --git a/cartridges/importer/flatpak_source.py b/cartridges/importer/flatpak_source.py index 3825364..a1104c9 100644 --- a/cartridges/importer/flatpak_source.py +++ b/cartridges/importer/flatpak_source.py @@ -54,10 +54,14 @@ class FlatpakSourceIterable(SourceIterable): } ) - if not source.locations: - return # TODO: I'm doing this on my phone, I don't even know why this is here lol - - generators = set(location.iterdir() for location in (self.source.locations.user_data["applications"], self.source.locations.system_data["applications"]) if location) + generators = set( + location.iterdir() + for location in ( + self.source.locations.user_data["applications"], + self.source.locations.system_data["applications"], + ) + if location + ) for entry in chain(*generators): if entry.suffix != ".desktop":