Skip to content

Commit

Permalink
Removed redundant else statement
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerlight071 committed Feb 7, 2024
1 parent edb6bc4 commit a7ceaaf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions login.py
Original file line number Diff line number Diff line change
Expand Up @@ -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: ")

Expand Down Expand Up @@ -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: ")

Expand Down

0 comments on commit a7ceaaf

Please sign in to comment.