Skip to content

Commit 84802e4

Browse files
nickwesselmanclaude
andcommitted
Fix lint errors: variable naming and unnecessary type assertion
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8493d6c commit 84802e4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/app/src/cli/services/dev/ui/components/DevSessionUI.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ const DevSessionUI: FunctionComponent<DevSesionUIProps> = ({
162162
},
163163
]
164164

165-
const activeShortcuts = devStatusShortcuts.filter((s) => s.condition?.() ?? true)
165+
const activeShortcuts = devStatusShortcuts.filter((shortcut) => shortcut.condition?.() ?? true)
166166

167167
const tabs: {[key: string]: Tab} = {
168168
// eslint-disable-next-line id-length
@@ -182,7 +182,7 @@ const DevSessionUI: FunctionComponent<DevSesionUIProps> = ({
182182
<Text key={shortcut.key}>
183183
{figures.pointerSmall} <Text bold>({shortcut.key})</Text>{' '}
184184
{terminalSupportsHyperlinks() && shortcut.url ? (
185-
<Link url={shortcut.url} label={shortcut.shortcutLabel!} />
185+
<Link url={shortcut.url} label={shortcut.shortcutLabel} />
186186
) : (
187187
shortcut.shortcutLabel
188188
)}
@@ -198,7 +198,7 @@ const DevSessionUI: FunctionComponent<DevSesionUIProps> = ({
198198
{status.isReady && !(canUseShortcuts && terminalSupportsHyperlinks()) && (
199199
<>
200200
{activeShortcuts
201-
.filter((s) => s.url)
201+
.filter((shortcut) => shortcut.url)
202202
.map((shortcut) => (
203203
<Text key={shortcut.key}>
204204
{shortcut.linkLabel} URL: <Link url={shortcut.url!} />

0 commit comments

Comments
 (0)