diff options
| author | Patrick Simianer <patrick@lilt.com> | 2026-02-24 17:18:29 +0100 |
|---|---|---|
| committer | Patrick Simianer <patrick@lilt.com> | 2026-02-24 17:18:29 +0100 |
| commit | 4e62908a1757f83ff703399252ad50758c4eb237 (patch) | |
| tree | ef7a525a7109f825cfa9b9369e28f2877ff4590b /example/weights | |
| parent | 22dc0fbdf002c7824941abc17a715a3e70ff37c1 (diff) | |
Replace silent rescue with explicit type check in Item constructor
When creating an Item from a Rule (not an Item), tail_spans doesn't exist.
Check with is_a?(Item) instead of catching the exception silently.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'example/weights')
0 files changed, 0 insertions, 0 deletions
