From eef72aa4656fdfa99089d58f016fee0935d33281 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Wed, 6 Jun 2018 20:44:58 +0200 Subject: standard_config_filename() style nit --- kconfiglib.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kconfiglib.py b/kconfiglib.py index 1a1d629..cee793e 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -4505,9 +4505,7 @@ def standard_config_filename(): .config file to load/save) if it is set, and ".config" otherwise. """ config_filename = os.environ.get("KCONFIG_CONFIG") - if config_filename is not None: - return config_filename - return ".config" + return config_filename if config_filename is not None else ".config" # # Internal functions -- cgit v1.2.3