Commit ac343f6
committed
fix: Filter empty reference IDs at source instead of in loop
This addresses the reviewer feedback from @setrofim about treating the
root cause rather than symptoms. Empty reference IDs are now filtered
immediately after GetRefValueIDs() to ensure EvidenceContext.ReferenceIds
never contains empty strings, rather than skipping them later in the loop.
This is a cleaner approach that prevents the issue from propagating
throughout the system and maintains data integrity at the source.
Signed-off-by: Kallal Mukherjee <ritamukherje62@gmail.com>1 parent 2f48d8c commit ac343f6
1 file changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
431 | 439 | | |
432 | 440 | | |
433 | 441 | | |
434 | 442 | | |
435 | 443 | | |
436 | 444 | | |
437 | | - | |
| 445 | + | |
438 | 446 | | |
439 | 447 | | |
440 | 448 | | |
441 | 449 | | |
442 | 450 | | |
443 | 451 | | |
444 | 452 | | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | 453 | | |
451 | 454 | | |
452 | 455 | | |
| |||
0 commit comments