Merge pull request #181 from MagicRB/freefmt_fix_github_app

Fix `treefmt` errors introduced in #156
This commit is contained in:
Jörg Thalheim 2024-06-13 09:56:46 +02:00 committed by GitHub
commit c92a655055
Failed to generate hash of commit

View file

@ -572,7 +572,7 @@ class GithubBackend(GitBackend):
if isinstance(self.auth_backend, GithubAppAuthBackend):
dropped_repos = list(
filter(lambda repo: not "installation_id" in repo, repos)
filter(lambda repo: "installation_id" not in repo, repos)
)
if dropped_repos:
tlog.info(
@ -611,7 +611,7 @@ class GithubBackend(GitBackend):
all_have_installation_id = True
for project in json.loads(self.config.project_cache_file.read_text()):
if not "installation_id" in project:
if "installation_id" not in project:
all_have_installation_id = False
break