Skip to content

Commit

Permalink
Removed redundant else statement (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerlight071 authored Feb 8, 2024
2 parents 906c628 + a7ceaaf commit 6c4150b
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 6c4150b

Please sign in to comment.