Commit 1bc10f3
committed
refactor: convert unnecessary named handlers to inline functions
Simplifies code by removing named handler functions that only pass
through arguments to other functions without adding meaningful logic or
transformation.
Changes: - terminal-link.tsx: handleMouseOver/handleMouseOut → inline
arrow functions - message-block.tsx: handleToggleAgentListCollapsed →
inline arrow function - chat.tsx: handleActivateRepoPath → inline arrow
function
This improves consistency with existing inline patterns in the codebase
and reduces unnecessary indirection.1 parent 76eacea commit 1bc10f3
File tree
3 files changed
+11
-30
lines changed- cli/src
- components
3 files changed
+11
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | 286 | | |
291 | 287 | | |
292 | 288 | | |
| |||
295 | 291 | | |
296 | 292 | | |
297 | 293 | | |
298 | | - | |
| 294 | + | |
299 | 295 | | |
300 | 296 | | |
301 | 297 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | 255 | | |
260 | 256 | | |
261 | 257 | | |
| |||
330 | 326 | | |
331 | 327 | | |
332 | 328 | | |
333 | | - | |
| 329 | + | |
334 | 330 | | |
335 | 331 | | |
336 | 332 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
60 | 65 | | |
61 | 66 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | 67 | | |
79 | 68 | | |
80 | 69 | | |
| |||
84 | 73 | | |
85 | 74 | | |
86 | 75 | | |
87 | | - | |
88 | | - | |
| 76 | + | |
| 77 | + | |
89 | 78 | | |
90 | 79 | | |
91 | 80 | | |
| |||
0 commit comments