Skip to content

Commit 5808ca7

Browse files
committed
Correct rogues logic
1 parent fa99f8e commit 5808ca7

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/demystify/demystify.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,10 @@ def analysis_from_database(
172172
)
173173
except AnalysisError as err:
174174
raise AnalysisError(f"problem running analysis: {err}") from err
175-
rogue_analysis = False
176-
if rogues is not False or heroes is not False:
177-
rogue_analysis = True
178-
analysis.runanalysis(rogue_analysis)
175+
if not rogues and not heroes:
176+
analysis.runanalysis(False)
177+
return analysis
178+
analysis.runanalysis(True)
179179
return analysis
180180

181181

@@ -194,7 +194,7 @@ def analysis_from_csv_lite(format_report, denylist=None, label=None):
194194
analyze=True,
195195
denylist=denylist,
196196
label=label,
197-
rogues=None,
197+
rogues=False,
198198
)
199199

200200

0 commit comments

Comments
 (0)