We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd686f1 commit 101c776Copy full SHA for 101c776
1 file changed
dojo/tools/ms_defender/parser.py
@@ -25,8 +25,7 @@ def get_findings(self, file, test):
25
if str(file.name).endswith(".json"):
26
vulnerabilityfile = json.load(file)
27
vulnerabilitydata = vulnerabilityfile["value"]
28
- for vulnerability in vulnerabilitydata:
29
- findings.append(self.process_json(vulnerability))
+ findings.extend(self.process_json(vulnerability) for vulnerability in vulnerabilitydata)
30
elif str(file.name).endswith(".zip"):
31
if str(file.__class__) == "<class '_io.TextIOWrapper'>":
32
input_zip = zipfile.ZipFile(file.name, "r")
0 commit comments