Commit f1df2ac
committed
refactor: simplify get_display_name control flow
Remove duplicate title check by moving universal title-first
logic outside the isinstance(Tool) conditional. This improves
readability and maintainability while preserving all existing
behavior.
Fixes #3480
- All 12 existing test assertions pass
- 100% code coverage maintained
- Type checking clean (pyright)
- Linting clean (ruff)1 parent 6affe5c commit f1df2ac
1 file changed
Lines changed: 10 additions & 11 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
0 commit comments