Skip to content

Commit e712144

Browse files
authored
Fix falsy-dict-get-fallback ruff warnings (#3077)
1 parent fd91cba commit e712144

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

archinstall/__init__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,10 @@ def load_config() -> None:
267267
def post_process_arguments(args: dict[str, Any]) -> None:
268268
storage['arguments'] = args
269269

270-
if args.get('debug', False):
270+
if args.get('debug'):
271271
warn(f"Warning: --debug mode will write certain credentials to {storage['LOG_PATH']}/{storage['LOG_FILE']}!")
272272

273-
if args.get('plugin', None):
273+
if args.get('plugin'):
274274
path = args['plugin']
275275
load_plugin(path)
276276

@@ -317,7 +317,7 @@ def main() -> None:
317317
OR straight as a module: python -m archinstall
318318
In any case we will be attempting to load the provided script to be run from the scripts/ folder
319319
"""
320-
if not arguments.get('skip_version_check', False):
320+
if not arguments.get('skip_version_check'):
321321
_check_new_version()
322322

323323
script = arguments.get('script', None)

archinstall/lib/args.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def from_config(cls, args_config: dict[str, Any]) -> 'ArchConfig':
9494
if bootloader_config := args_config.get('bootloader', None):
9595
arch_config.bootloader = Bootloader.from_arg(bootloader_config)
9696

97-
if args_config.get('uki', False) and not arch_config.bootloader.has_uki_support():
97+
if args_config.get('uki') and not arch_config.bootloader.has_uki_support():
9898
arch_config.uki = False
9999

100100
if audio_config := args_config.get('audio_config', None):

0 commit comments

Comments
 (0)