Skip to content

Commit 1c66904

Browse files
committed
🔧 fix: resolve build issues
1 parent 0b58e52 commit 1c66904

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/adapter/bun/handler.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -538,10 +538,8 @@ export const errorToResponse = (error: Error, set?: Context['set']) => {
538538
return mapResponse(resolved, targetSet)
539539
}
540540

541-
// @ts-expect-error
542541
return typeof raw?.then === 'function'
543-
? // @ts-expect-error
544-
raw.then(apply)
542+
? raw.then(apply)
545543
: apply(raw)
546544
}
547545

src/adapter/web-standard/handler.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -571,10 +571,8 @@ export const errorToResponse = (error: Error, set?: Context['set']) => {
571571
return mapResponse(resolved, targetSet)
572572
}
573573

574-
// @ts-expect-error
575574
return typeof raw?.then === 'function'
576-
? // @ts-expect-error
577-
raw.then(apply)
575+
? raw.then(apply)
578576
: apply(raw)
579577
}
580578

0 commit comments

Comments
 (0)