whitespace

This commit is contained in:
Hri7566 2024-10-23 02:31:47 -04:00
parent 7eebae30f9
commit e77cd0078f
1 changed files with 4 additions and 2 deletions

View File

@ -87,12 +87,14 @@ export async function validateToken(userID: string, token: string) {
const user = await readUser(userID); const user = await readUser(userID);
if (!user) { if (!user) {
logger.warn(`Unable to validate token for user ${userID}: User not found, which is really weird`); logger.warn(
`Unable to validate token for user ${userID}: User not found, which is really weird`
);
return false; return false;
} }
if (typeof user.tokens !== "string") { if (typeof user.tokens !== "string") {
user.tokens = "[]"; user.tokens = "[]"; // shut up go away
} }
const data = JSON.parse(user.tokens) as string[]; const data = JSON.parse(user.tokens) as string[];