Commit cab2cf3
fix: add missing return statements in mergeSingleEvent()
The method declared a return type of Track but had two code paths
with missing returns: the early return when no events exist returned
undefined, and the end of the function had no return at all. Both
now return this to match the type contract and enable method chaining.
Closes #147
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 691e19a commit cab2cf3
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| 223 | + | |
| 224 | + | |
223 | 225 | | |
224 | 226 | | |
225 | 227 | | |
| |||
0 commit comments