From cbfbb32b869db226c1bbc657807936cd71d94cae Mon Sep 17 00:00:00 2001 From: furtest Date: Wed, 28 Jan 2026 18:21:38 +0100 Subject: [PATCH] main : linter reports cleanup use is not None instead of != None and remove a useless pass --- src/unisync/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/unisync/main.py b/src/unisync/main.py index 7096498..d8b77b3 100644 --- a/src/unisync/main.py +++ b/src/unisync/main.py @@ -15,14 +15,13 @@ def main(): config_path: Path = Path("~/.config/unisync/config.ini").expanduser() # Check if --config is set - if cli_args.config != None and Path(cli_args.config).is_file(): + if cli_args.config is not None and Path(cli_args.config).is_file(): config = load_config(cli_args.config) elif config_path.is_file(): config = load_config(str(config_path)) else: # TODO replace the next line with something to do if no config file is found config = load_config(str(config_path)) - pass # TODO make the command line arguments work and override the config options