[O] Optimize fore_back distro detection

This commit is contained in:
Azalea (on HyDEV-Daisy) 2022-10-23 02:20:51 -04:00
parent ff44ea6185
commit 717ff369c0
No known key found for this signature in database
GPG key ID: E289FAC0DA92DD2B

View file

@ -288,7 +288,7 @@ def get_fore_back(distro: str | None = None) -> tuple[int, int] | None:
distro = GLOBAL_CFG.override_distro
if not distro:
distro = get_distro_name().lower()
distro = distro.lower()
distro = distro.lower().replace(' ', '-')
for k, v in fore_back.items():
if distro == k.lower():
return v