Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx committed May 6, 2024
1 parent ca0e4eb commit ab88823
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/universal/debug/src/call-stack/debug/stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function callerStack(
"An error created in the internals of Stack.create",
).stack;

verify(stack, hasType("string"));
verify?.(stack, hasType("string"));
return callStack(stack)?.slice(internal + CALLER);
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/universal/verify/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ export const expected: typeof expectedDev = import.meta.env.DEV ? expectedDev :
export const hasType: typeof hasTypeDev = import.meta.env.DEV ? hasTypeDev : (noop as typeof hasTypeDev)
export const isOneOf: typeof isOneOfDev = import.meta.env.DEV ? isOneOfDev : (noop as typeof isOneOfDev)

export const verify: VerifyFn | null = import.meta.env.DEV
export const verify: VerifyFn = import.meta.env.DEV
? verifyDev
: null;
: null as unknown as VerifyFn;

0 comments on commit ab88823

Please sign in to comment.