Skip to content

Commit 7aa06ff

Browse files
committed
chore: fix ruff errors
1 parent 9cd3150 commit 7aa06ff

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

mitreattack/attackToExcel/attackToExcel.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,7 @@ def build_dataframes(src: MemoryStore, domain: str) -> Dict:
147147
return df
148148

149149
def build_ds_an_lg_relationships(dataframes: Dict) -> Dict[str, pd.DataFrame]:
150-
"""
151-
Build sheets for ds-an-lg.xlsx using existing relationship tables.
152-
"""
150+
"""Build sheets for ds-an-lg.xlsx using existing relationship tables."""
153151
# Use existing DetectionStrategy -> Analytics relationship table
154152
ds_an = dataframes["detectionstrategies"].get(
155153
"detectionstrategies-analytic",

mitreattack/attackToExcel/stixToDf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,6 @@ def detectionstrategiesToDf(src):
457457
# analytics relationship table rows
458458
for analytic_id in detection_strategy.get("x_mitre_analytic_refs", []):
459459
analytic_obj = src.get(analytic_id)
460-
analytic_name = analytic_obj.get("name", "") if analytic_obj else ""
461460

462461
rel_rows.append({
463462
"detection_strategy_id": detection_strategy["id"],

0 commit comments

Comments
 (0)