main : linter reports cleanup

use is not None instead of != None and remove a useless pass
This commit is contained in:
2026-01-28 18:21:38 +01:00
parent 942b6c3cef
commit cbfbb32b86

View File

@@ -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