Skip to content

Commit

Permalink
fix(hono): custom validator always does return
Browse files Browse the repository at this point in the history
This is to avoid the following lint error:

```
error TS7030: Not all code paths return a value.
```
  • Loading branch information
soartec-lab committed Jan 13, 2025
1 parent 5f143b6 commit a0cf644
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/hono/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -941,6 +941,8 @@ export const zValidator =
c.res = new Response(JSON.stringify(result.data), c.res);
}
}
return;
};
`;

Expand Down

0 comments on commit a0cf644

Please sign in to comment.