Skip to content

Commit c77b8a3

Browse files
committed
chore(api): drop unreachable runtime check after HttpError instanceof guard
1 parent 17701ea commit c77b8a3

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

apps/sim/lib/core/utils/with-route-handler.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ type RouteHandler<T = unknown> = (
3131
function readTypedErrorStatus(error: unknown): number | undefined {
3232
if (!(error instanceof HttpError)) return undefined
3333
const status = error.statusCode
34-
if (typeof status !== 'number') return undefined
3534
if (status < 400 || status >= 600) return undefined
3635
return status
3736
}

0 commit comments

Comments
 (0)