Merge pull request #181 from MagicRB/freefmt_fix_github_app
Fix `treefmt` errors introduced in #156
This commit is contained in:
commit
c92a655055
|
@ -572,7 +572,7 @@ class GithubBackend(GitBackend):
|
||||||
|
|
||||||
if isinstance(self.auth_backend, GithubAppAuthBackend):
|
if isinstance(self.auth_backend, GithubAppAuthBackend):
|
||||||
dropped_repos = list(
|
dropped_repos = list(
|
||||||
filter(lambda repo: not "installation_id" in repo, repos)
|
filter(lambda repo: "installation_id" not in repo, repos)
|
||||||
)
|
)
|
||||||
if dropped_repos:
|
if dropped_repos:
|
||||||
tlog.info(
|
tlog.info(
|
||||||
|
@ -611,7 +611,7 @@ class GithubBackend(GitBackend):
|
||||||
|
|
||||||
all_have_installation_id = True
|
all_have_installation_id = True
|
||||||
for project in json.loads(self.config.project_cache_file.read_text()):
|
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
|
all_have_installation_id = False
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue