fix linting
This commit is contained in:
parent
34f2669ab9
commit
c63690c181
@ -18,7 +18,7 @@ export async function checkAuth (cookies, res, vmpath = null) {
|
||||
const userObj = getUserObjFromUsername(cookies.username);
|
||||
if (!userObj) {
|
||||
res.status(401).send({ auth, path: vmpath ? `${vmpath}/config` : "/version", error: "Username was missing or invalid." });
|
||||
res.end()
|
||||
res.end();
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -374,6 +374,6 @@ export function getUserObjFromUsername (username) {
|
||||
return userObj;
|
||||
}
|
||||
else {
|
||||
return null
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user