refactor
This commit is contained in:
parent
17589843da
commit
fa1a53270e
|
@ -148,7 +148,7 @@ router.get('/users/:user/publickey', async ctx => {
|
||||||
});
|
});
|
||||||
|
|
||||||
// user
|
// user
|
||||||
async function userInfo(ctx: Router.RouterContext, user: User | undefined | null) {
|
async function userInfo(ctx: Router.RouterContext, user: User | null) {
|
||||||
if (user == null) {
|
if (user == null) {
|
||||||
ctx.status = 404;
|
ctx.status = 404;
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue