Skip to content

Commit 51be60f

Browse files
committed
Assert empty list
1 parent 0c3ec65 commit 51be60f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sharktuner/sharktuner/candidate_ordering.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,7 @@ def flatten_records(
177177

178178

179179
def export_record_to_csv(tuning_records: list[TuningRecord], dest_file: Path) -> None:
180-
if not tuning_records:
181-
return None
180+
assert tuning_records
182181

183182
headers, rows = flatten_records(tuning_records)
184183

0 commit comments

Comments
 (0)