From a7ceaaf0d50eb3896b7902b3d23c203b8cc0922c Mon Sep 17 00:00:00 2001 From: Tyler Lightwood Date: Wed, 7 Feb 2024 17:40:14 +0000 Subject: [PATCH] Removed redundant else statement --- login.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/login.py b/login.py index 4242ca9..1c86da5 100644 --- a/login.py +++ b/login.py @@ -27,8 +27,7 @@ def change_admin_password(username): clear_screen() print(Fore.RED + "\nPassword cannot be empty. Please try again." + Style.RESET_ALL) continue - else: - break + break confirm_password = getpass.getpass("Confirm the new password: ") @@ -71,8 +70,7 @@ def reset_password(username): clear_screen() print(Fore.RED + "\nPassword cannot be empty. Please try again." + Style.RESET_ALL) continue - else: - break + break confirm_password = getpass.getpass("Confirm the new password: ")