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

pmb.helpers.other.cache: simplify (MR 2252)

The init_cache() function just assigned some default constants, simplify
this by just declaring it that way to begin with, as well as adding type
hints.

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2024-04-04 02:38:37 +02:00 committed by Oliver Smith
parent 3bfc6474bb
commit 7ed08e74d3
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
4 changed files with 20 additions and 30 deletions

View file

@ -113,7 +113,6 @@ def init(args: PmbArgs):
fix_mirrors_postmarketos(args)
pmb.config.merge_with_args(args)
replace_placeholders(args)
pmb.helpers.other.init_cache()
# Initialize logs (we could raise errors below)
pmb.helpers.logging.init(args)