()
| 215 | } |
| 216 | |
| 217 | function handleCancel() { |
| 218 | if (onCancel) { |
| 219 | // Abort exit and return to the session |
| 220 | onCancel(); |
| 221 | return; |
| 222 | } |
| 223 | // Fallback: treat Escape as "keep" if no onCancel provided |
| 224 | void handleSelect('keep'); |
| 225 | } |
| 226 | |
| 227 | const removeDescription = |
| 228 | hasUncommitted || hasCommits ? 'All changes and commits will be lost.' : 'Clean up the worktree directory.'; |
nothing calls this directly
no test coverage detected