Skip to content

Commit

Permalink
Refactor unnecessary else / elif when if block has a break st…
Browse files Browse the repository at this point in the history
…atement
  • Loading branch information
deepsource-autofix[bot] committed Mar 10, 2021
1 parent c51d322 commit c114ea2
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions apkleaks/apkleaks.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,12 @@ def integrity(self):
self.write("Do you want to download jadx? (Y/n) ", clr.OKBLUE)
choice = input().lower()
if choice == "":
choice = valid["y"]
break
elif choice in valid:
choice = valid[choice]
break
else:
self.writeln("\nPlease respond with 'yes' or 'no' (or 'y' or 'n').", clr.WARNING)
choice = valid["y"]
break
if choice in valid:
choice = valid[choice]
break
self.writeln("\nPlease respond with 'yes' or 'no' (or 'y' or 'n').", clr.WARNING)
if choice:
self.writeln("** Downloading jadx...\n", clr.OKBLUE)
self.dependencies()
Expand Down

0 comments on commit c114ea2

Please sign in to comment.