diff --git a/striker-ui-api/src/lib/call.ts b/striker-ui-api/src/lib/call.ts index 5a842e55..9b565907 100644 --- a/striker-ui-api/src/lib/call.ts +++ b/striker-ui-api/src/lib/call.ts @@ -1,9 +1,7 @@ const call = ( toCall: unknown, { parameters = [], notCallableReturn }: CallOptions = {}, -) => - (typeof toCall === 'function' - ? toCall(...parameters) - : notCallableReturn) as T; +): T => + typeof toCall === 'function' ? toCall(...parameters) : notCallableReturn; export default call;