From 762017e486390bb5ca4f61ebd6844a8bd9c39de3 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Fri, 15 Feb 2019 23:43:49 +0900 Subject: [PATCH] Fix #4276 (#4278) --- src/server/api/endpoints/users/show.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server/api/endpoints/users/show.ts b/src/server/api/endpoints/users/show.ts index 05d188a6a..025598b8f 100644 --- a/src/server/api/endpoints/users/show.ts +++ b/src/server/api/endpoints/users/show.ts @@ -70,10 +70,10 @@ export default define(meta, (ps, me) => new Promise(async (res, rej) => { : { usernameLower: ps.username.toLowerCase(), host: null }; user = await User.findOne(q, cursorOption); + } - if (user === null) { - return rej('user not found'); - } + if (user === null) { + return rej('user not found'); } // Send response