Fix falsy-dict-get-fallback ruff warnings (#3077)

This commit is contained in:
correctmost 2025-01-07 20:38:40 +00:00 committed by GitHub
parent fd91cbaac1
commit e712144e5d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -267,10 +267,10 @@ def load_config() -> None:
def post_process_arguments(args: dict[str, Any]) -> None:
storage['arguments'] = args
if args.get('debug', False):
if args.get('debug'):
warn(f"Warning: --debug mode will write certain credentials to {storage['LOG_PATH']}/{storage['LOG_FILE']}!")
if args.get('plugin', None):
if args.get('plugin'):
path = args['plugin']
load_plugin(path)
@ -317,7 +317,7 @@ def main() -> None:
OR straight as a module: python -m archinstall
In any case we will be attempting to load the provided script to be run from the scripts/ folder
"""
if not arguments.get('skip_version_check', False):
if not arguments.get('skip_version_check'):
_check_new_version()
script = arguments.get('script', None)

View File

@ -94,7 +94,7 @@ class ArchConfig:
if bootloader_config := args_config.get('bootloader', None):
arch_config.bootloader = Bootloader.from_arg(bootloader_config)
if args_config.get('uki', False) and not arch_config.bootloader.has_uki_support():
if args_config.get('uki') and not arch_config.bootloader.has_uki_support():
arch_config.uki = False
if audio_config := args_config.get('audio_config', None):