Skip to content

Commit 6c53ec6

Browse files
lambdalisueclaude
andcommitted
fix(source): fix type error in git status source
Handle unknown error type properly by checking if it's an Error instance before accessing the name property. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 592c5de commit 6c53ec6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/source/git_status.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ export function gitStatus(
197197
yield* items;
198198
} catch (err) {
199199
// Handle errors gracefully
200-
if (err.name === "NotFound") {
200+
if (err instanceof Error && err.name === "NotFound") {
201201
// Git not installed - silently return empty
202202
return;
203203
}

0 commit comments

Comments
 (0)