From dce6ad43904a8222d2213eff2e6153820a976896 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Fri, 25 Nov 2022 19:37:13 -0500 Subject: [PATCH] Removed useless pass statement in sync() --- lib/sshyp.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/sshyp.py b/lib/sshyp.py index 609b0ba..446c7d9 100755 --- a/lib/sshyp.py +++ b/lib/sshyp.py @@ -523,9 +523,7 @@ def sync(): # calls sshync to sync changes to the user's server _folder_database = None s_exit(6) for _folder in _folder_database: - if Path(f"{expanduser('~')}{_folder[:-1]}").is_dir(): - pass - else: + if not Path(f"{expanduser('~')}{_folder[:-1]}").is_dir(): print(f"\u001b[38;5;2m{_folder.replace('/.local/share/sshyp/', '')[:-1]}/\u001b[0m does not exist locally, " f"creating...") Path(f"{expanduser('~')}{_folder[:-1]}").mkdir(0o700, parents=True, exist_ok=True)