Commit bdf0b4e
fix(ruby): prevent duplicate errors in undiscriminated union conversion
Return the already-converted result from the cloned context instead of
calling convert() again on the main context. This prevents duplicate
errors when the same conversion is performed twice.
Co-Authored-By: [email protected] <[email protected]>1 parent c8cd99d commit bdf0b4e
File tree
1 file changed
+3
-2
lines changed- generators/ruby-v2/dynamic-snippets/src/context
1 file changed
+3
-2
lines changedLines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
| 345 | + | |
| 346 | + | |
346 | 347 | | |
347 | | - | |
| 348 | + | |
348 | 349 | | |
349 | 350 | | |
350 | 351 | | |
| |||
0 commit comments