Commit e95af36
committed
Fix non-empty criterion check to use artifact.body instead of text
The non-empty check in scoreArtifactQuality was using text (which
includes appended context) instead of artifact.body. This meant an
artifact with an empty body would pass the non-empty check whenever
context was supplied, defeating the purpose of the validity check.
Restored the check to use artifact.body.length so context informs
quality scoring but cannot substitute for actual artifact content.1 parent e6e9e6c commit e95af36
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
428 | | - | |
| 428 | + | |
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
| |||
0 commit comments