From: Daan De Meyer Date: Sun, 7 Jul 2024 13:39:13 +0000 (+0200) Subject: Use return value of finalize_value() in one more place X-Git-Tag: v24~50^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8de94b77899006af48d66288c697cc21ce7ace2a;p=thirdparty%2Fmkosi.git Use return value of finalize_value() in one more place Doesn't change behavior, just slightly easier to read. --- diff --git a/mkosi/config.py b/mkosi/config.py index 68b553c3c..b0c5cbe7f 100644 --- a/mkosi/config.py +++ b/mkosi/config.py @@ -3474,10 +3474,10 @@ def parse_config(argv: Sequence[str] = (), *, resources: Path = Path("/")) -> tu # If we encounter a setting that has not been explicitly configured yet, we assign the default value # first so that we can match on default values for settings. - if finalize_value(s) is None: + if (value := finalize_value(s)) is None: result = False else: - result = s.match(v, getattr(namespace, s.dest)) + result = s.match(v, value) elif m := MATCH_LOOKUP.get(k): result = m.match(v)