Skip to content

Commit 101c776

Browse files
authored
Fixing linter issue (#12519)
1 parent cd686f1 commit 101c776

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dojo/tools/ms_defender/parser.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ def get_findings(self, file, test):
2525
if str(file.name).endswith(".json"):
2626
vulnerabilityfile = json.load(file)
2727
vulnerabilitydata = vulnerabilityfile["value"]
28-
for vulnerability in vulnerabilitydata:
29-
findings.append(self.process_json(vulnerability))
28+
findings.extend(self.process_json(vulnerability) for vulnerability in vulnerabilitydata)
3029
elif str(file.name).endswith(".zip"):
3130
if str(file.__class__) == "<class '_io.TextIOWrapper'>":
3231
input_zip = zipfile.ZipFile(file.name, "r")

0 commit comments

Comments
 (0)