From 455c66e6914f9584f520a6c1f4c669de13e7b98c Mon Sep 17 00:00:00 2001 From: sv7atoslav Date: Thu, 10 Jun 2021 11:02:24 +0300 Subject: [PATCH] Update repackage_apk_for_burp.py rewrite if-else to one-line boolean check --- repackage_apk_for_burp.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/repackage_apk_for_burp.py b/repackage_apk_for_burp.py index 3ffb163..6c7e966 100644 --- a/repackage_apk_for_burp.py +++ b/repackage_apk_for_burp.py @@ -21,10 +21,7 @@ def check_for_tools(name): """Checks to see whether the tool name is in current directory or in the PATH""" - if is_in_dir(name) or is_in_path(name): - return True - else: - return False + return ( (is_in_dir(name) or is_in_path(name))==True ) def is_in_path(name): @@ -310,4 +307,4 @@ def main(): burp_host = args.proxy.split(":")[0] burp_port = int(args.proxy.split(":")[1]) - main() \ No newline at end of file + main()