forked from Mirror/pmbootstrap
pmb.config.init: Simplify removal of select from providers_cfg (MR 2525)
See https://docs.astral.sh/ruff/rules/if-key-in-dict-del
This commit is contained in:
parent
7037d9ab46
commit
01abf537bb
1 changed files with 1 additions and 2 deletions
|
@ -355,8 +355,7 @@ def ask_for_provider_select(apkbuild: dict[str, Any], providers_cfg: dict[str, s
|
|||
# Selecting default means to not select any provider explicitly
|
||||
# In other words, apk chooses it automatically based on
|
||||
# "provider_priority"
|
||||
if select in providers_cfg:
|
||||
del providers_cfg[select]
|
||||
providers_cfg.pop(select, None)
|
||||
break
|
||||
if ret in providers_short:
|
||||
providers_cfg[select] = providers_short[ret]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue