diff --git a/flatpak_builder_lint/builddir.py b/flatpak_builder_lint/builddir.py index c5c77e8e..07a52390 100644 --- a/flatpak_builder_lint/builddir.py +++ b/flatpak_builder_lint/builddir.py @@ -71,12 +71,8 @@ def parse_metadata(ini: str) -> dict: if "sockets" in permissions: permissions["socket"] = permissions.pop("sockets") - if ( - "sockets" in permissions - and "x11" in permissions["socket"] - and "fallback-x11" in permissions["socket"] - ): - permissions["socket"].remove("x11") + if "x11" in permissions["socket"] and "fallback-x11" in permissions["socket"]: + permissions["socket"].remove("x11") if "devices" in permissions: permissions["device"] = permissions.pop("devices") diff --git a/pyproject.toml b/pyproject.toml index 40528dd8..6085e49f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "flatpak_builder_lint" -version = "2.0.22" +version = "2.0.23" description = "A linter for flatpak-builder manifests" authors = ["Bartłomiej Piotrowski "] license = "MIT"