From dbe927f367bd070a94dfe9e4235b1186b45c03ed Mon Sep 17 00:00:00 2001 From: unlinkability <146661751+linkability@users.noreply.github.com> Date: Mon, 9 Oct 2023 16:45:47 +0100 Subject: [PATCH] Remove Boolean from checks Co-authored-by: Jack W. <29169102+Jack5079@users.noreply.github.com> --- src/server/routes/api/v1/admin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/routes/api/v1/admin.ts b/src/server/routes/api/v1/admin.ts index 9dfbb0c..fc00b50 100644 --- a/src/server/routes/api/v1/admin.ts +++ b/src/server/routes/api/v1/admin.ts @@ -101,7 +101,7 @@ module.exports = function(files: Files) { const deleteAccount = () => Accounts.deleteAccount(accountId).then(_ => res.send("account deleted")) - if (Boolean(deleteFiles)) { + if (deleteFiles) { const Files = targetAccount.files.map(e => e) for (let fileId of Files) {