Skip to content

Commit 8e5f493

Browse files
authored
fix(standard-validator): remove dead code (#962)
* fix(standard-validator): remove dead code * chore(standard-validator): changeset
1 parent 08b7e0d commit 8e5f493

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.changeset/small-turtles-relax.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@hono/standard-validator': patch
3+
---
4+
5+
Remove dead code

packages/standard-validator/src/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ type Hook<
2121
c: Context<E, P>
2222
) => TOrPromiseOfT<Response | void | TypedResponse<O>>
2323

24-
const isStandardSchemaValidator = (validator: unknown): validator is StandardSchemaV1 =>
25-
!!validator && typeof validator === 'object' && '~standard' in validator
26-
2724
const sValidator = <
2825
Schema extends StandardSchemaV1,
2926
Target extends keyof ValidationTargets,

0 commit comments

Comments
 (0)