Commit 367f291
refactor(cdk): fix emit_slice logic - default True when parent_record exists, False on KeyError
- emit_slice = parent_record is not None (default True when we have a record)
- Set emit_slice = False only when KeyError occurs during dpath.get
- This makes the logic clearer: we want to emit slices by default, skip only on error
Co-Authored-By: Daryna Ishchenko <darina.ishchenko17@gmail.com>1 parent aa99d1b commit 367f291
1 file changed
Lines changed: 2 additions & 3 deletions
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
| 215 | + | |
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
238 | 237 | | |
239 | 238 | | |
240 | | - | |
| 239 | + | |
241 | 240 | | |
242 | 241 | | |
243 | 242 | | |
| |||
0 commit comments