Commit 3473bb9
committed
LCORE-1572: raise instead of assert on the drained compaction result
apply_compaction_blocking asserted that the generator yielded a result. Under
python -O asserts are stripped, so the guard would vanish and a None result
could propagate to callers. Replace it with an explicit None check that raises
RuntimeError.
Clears a GitHub code-scanning (CodeQL) "use of assert" finding. The repository's
Bandit configuration skips B101, so this only surfaced via code scanning, not
the Bandit CI job.1 parent fae1076 commit 3473bb9
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
| 378 | + | |
| 379 | + | |
379 | 380 | | |
380 | 381 | | |
381 | 382 | | |
| |||
0 commit comments