Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tdraier committed Nov 21, 2024
1 parent 05a9501 commit bfb7a20
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion extension/app/src/components/conversation/AgentMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ import {
} from "@extension/components/markdown/MentionBlock";
import { useSubmitFunction } from "@extension/components/utils/useSubmitFunction";
import { useEventSource } from "@extension/hooks/useEventSource";
import { assertNeverAndIgnore } from "@extension/lib/asserNever";
import { assertNeverAndIgnore } from "@extension/lib/assertNeverAndIgnore";
import { retryMessage } from "@extension/lib/conversation";
import {
useCallback,
Expand Down
5 changes: 0 additions & 5 deletions extension/app/src/lib/asserNever.ts

This file was deleted.

6 changes: 6 additions & 0 deletions extension/app/src/lib/assertNeverAndIgnore.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export function assertNeverAndIgnore(x: never): void {
// This could happen if the extension is not up-to-date with the current version of the app.
console.log(
`${typeof x === "object" ? JSON.stringify(x) : x} is not handled, ensure you use the latest version of the extension.`
);
}

0 comments on commit bfb7a20

Please sign in to comment.