From aa66e69ae8356923d396dc52c6a32cd652011a2c Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 6 Oct 2017 20:08:06 +0200 Subject: [PATCH] mkosi: minor prettification There's no need to append an empty string if we have to conditionalize things anyway. --- mkosi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mkosi b/mkosi index 0cd84528f..78466add0 100755 --- a/mkosi +++ b/mkosi @@ -2367,7 +2367,9 @@ def find_cache(args): if os.path.exists("mkosi.cache/"): args.cache_path = "mkosi.cache/" + args.distribution.name - args.cache_path += "~" + args.release if args.release is not None else "" + + if args.release is not None: + args.cache_path += "~" + args.release def find_build_script(args): if args.build_script is not None: -- 2.47.2