1
0
Fork 1
mirror of https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git synced 2025-07-15 04:15:13 +03:00

pmb: Enable Perflint checks

Likely will have minor impact in practice, but it is better than
nothing. Also seems to often result in more concise code.
This commit is contained in:
Newbyte 2025-05-26 20:30:59 +02:00
parent 3ea5a3433b
commit 1ce9b6a887
No known key found for this signature in database
GPG key ID: ACD854892B38D898
9 changed files with 21 additions and 29 deletions

View file

@ -13,10 +13,7 @@ class Pull(commands.Command):
pass
def run(self) -> None:
failed = []
for repo in pmb.config.git_repos.keys():
if pmb.helpers.git.pull(repo) < 0:
failed.append(repo)
failed = [repo for repo in pmb.config.git_repos.keys() if pmb.helpers.git.pull(repo) < 0]
if not failed:
return