Skip to content

Commit

Permalink
fix unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
codingki committed Jun 29, 2024
1 parent 9c99a74 commit 10a9c29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion packages/widget/src/ui/AssetValue.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useMemo } from 'react';
import { formatUnits } from 'viem';
import { useAssets } from '../provider/assets';
import { raise } from '../utils/assert';

interface Props {
chainId: string;
Expand Down
6 changes: 3 additions & 3 deletions packages/widget/src/utils/assert.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const ignoreSymbol = Symbol("ignore");
const ignoreSymbol = Symbol('ignore');

export function ignore(): never {
throw ignoreSymbol;
}

export function raise(message?: string, opts?: ErrorOptions): never {
throw new Error(message, opts);
export function raise(message?: string): never {
throw new Error(message);
}

0 comments on commit 10a9c29

Please sign in to comment.