Skip to content

Commit

Permalink
Improve GitHub Integration Error Handling with TypeScript Type Safety
Browse files Browse the repository at this point in the history
  • Loading branch information
satococoa committed Jan 31, 2025
1 parent d1e15f6 commit 5ea11d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/navigation-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ function GitHubIntegration() {
case "not-installed":
return <GitHubIntegrationForm />;
default:
throw new Error(`Invalid GitHub integration state: ${status}`);
throw new Error(status satisfies never);
}
};
return (
Expand Down

0 comments on commit 5ea11d8

Please sign in to comment.