mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 14:07:38 -07:00
refactor
This commit is contained in:
parent
54e1c7f60e
commit
b6f1766443
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ router.get('/users/:user/publickey', async ctx => {
|
|||
});
|
||||
|
||||
// user
|
||||
async function userInfo(ctx: Router.RouterContext, user: User | undefined | null) {
|
||||
async function userInfo(ctx: Router.RouterContext, user: User | null) {
|
||||
if (user == null) {
|
||||
ctx.status = 404;
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue