main : linter reports cleanup
use is not None instead of != None and remove a useless pass
This commit is contained in:
@@ -15,14 +15,13 @@ def main():
|
|||||||
|
|
||||||
config_path: Path = Path("~/.config/unisync/config.ini").expanduser()
|
config_path: Path = Path("~/.config/unisync/config.ini").expanduser()
|
||||||
# Check if --config is set
|
# 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)
|
config = load_config(cli_args.config)
|
||||||
elif config_path.is_file():
|
elif config_path.is_file():
|
||||||
config = load_config(str(config_path))
|
config = load_config(str(config_path))
|
||||||
else:
|
else:
|
||||||
# TODO replace the next line with something to do if no config file is found
|
# TODO replace the next line with something to do if no config file is found
|
||||||
config = load_config(str(config_path))
|
config = load_config(str(config_path))
|
||||||
pass
|
|
||||||
|
|
||||||
# TODO make the command line arguments work and override the config options
|
# TODO make the command line arguments work and override the config options
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user