Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 066d17b

Browse files
committed
[client] Fix linting
1 parent 3f089c9 commit 066d17b

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

pycti/utils/opencti_stix2.py

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -428,18 +428,14 @@ def extract_embedded_relationships(
428428
)
429429
self.mapping_cache[url] = {"id": external_reference_id}
430430
external_references_ids.append(external_reference_id)
431-
if (
432-
stix_object["type"]
433-
in [
434-
"threat-actor",
435-
"intrusion-set",
436-
"campaign",
437-
"incident",
438-
"malware",
439-
"relationship",
440-
]
441-
and (types is not None and "external-reference-as-report" in types)
442-
):
431+
if stix_object["type"] in [
432+
"threat-actor",
433+
"intrusion-set",
434+
"campaign",
435+
"incident",
436+
"malware",
437+
"relationship",
438+
] and (types is not None and "external-reference-as-report" in types):
443439
# Add a corresponding report
444440
# Extract date
445441
try:

0 commit comments

Comments
 (0)