Commit f9db676
committed
refactor: remove redundant type casts in agent-session and browser tool
Three redundant 'as boolean' casts on settings.get() return values:
- agent-session.ts: settings.get('advisor.enabled') as boolean
- browser.ts: settings.get('browser.cmux') as boolean | undefined
- browser.ts: settings.get('browser.headless') as boolean
SettingValue<P> already resolves to boolean for these paths (they
have type: 'boolean' with a non-undefined default in the schema),
making the casts unnecessary.1 parent af2e53e commit f9db676
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1734 | 1734 | | |
1735 | 1735 | | |
1736 | 1736 | | |
1737 | | - | |
| 1737 | + | |
1738 | 1738 | | |
1739 | 1739 | | |
1740 | 1740 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
0 commit comments