()
| 102 | |
| 103 | let current: UpdateHunk | undefined; |
| 104 | const finishCurrent = (): void => { |
| 105 | if (!current) return; |
| 106 | if (current.lines.length === 0) throw patchError(`empty update hunk for ${path}`); |
| 107 | hunks.push(current); |
| 108 | current = undefined; |
| 109 | }; |
| 110 | |
| 111 | while (index < lines.length) { |
| 112 | const line = lines[index]; |
no test coverage detected