From: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com> Date: Sat, 7 Aug 2021 21:32:46 +0000 (+0200) Subject: LGTM warning: Unnecessary pass X-Git-Tag: v8.20~70^2~5 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=7b1b2eeefed6603f4c52a47d1570e5370b6c2604;p=users%2Fdwmw2%2Fopenconnect.git LGTM warning: Unnecessary pass Unnecessary 'pass' statement. https://lgtm.com/rules/910088/ Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com> --- diff --git a/www/html.py b/www/html.py index 1710ea43..5a895224 100755 --- a/www/html.py +++ b/www/html.py @@ -223,7 +223,6 @@ except getopt.GetoptError as ex: print (ex.msg) usage() sys.exit(1) - pass for option, value in options: if option == '-d': @@ -233,8 +232,6 @@ for option, value in options: elif option == '-h': usage() sys.exit(0) - pass - pass # Handle special case VAR_ORIGIN idx = len(replace) @@ -246,7 +243,6 @@ if not arguments: print ("No source file specified") usage() sys.exit(1) - pass if writefile > 0: fname = arguments[0].split('.')[0]