getreportopt: remove needless if
This commit is contained in:
@@ -165,15 +165,14 @@ def getreportopt(config):
|
|||||||
reportchars += "w"
|
reportchars += "w"
|
||||||
elif config.option.disable_warnings and "w" in reportchars:
|
elif config.option.disable_warnings and "w" in reportchars:
|
||||||
reportchars = reportchars.replace("w", "")
|
reportchars = reportchars.replace("w", "")
|
||||||
if reportchars:
|
for char in reportchars:
|
||||||
for char in reportchars:
|
if char == "a":
|
||||||
if char == "a":
|
reportopts = "sxXwEf"
|
||||||
reportopts = "sxXwEf"
|
elif char == "A":
|
||||||
elif char == "A":
|
reportopts = "sxXwEfpP"
|
||||||
reportopts = "sxXwEfpP"
|
break
|
||||||
break
|
elif char not in reportopts:
|
||||||
elif char not in reportopts:
|
reportopts += char
|
||||||
reportopts += char
|
|
||||||
return reportopts
|
return reportopts
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user