Remove Boolean from checks

Co-authored-by: Jack W. <29169102+Jack5079@users.noreply.github.com>
This commit is contained in:
unlinkability 2023-10-09 16:45:47 +01:00 committed by GitHub
parent 3dec4d401e
commit dbe927f367
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -101,7 +101,7 @@ module.exports = function(files: Files) {
const deleteAccount = () => Accounts.deleteAccount(accountId).then(_ => res.send("account deleted")) const deleteAccount = () => Accounts.deleteAccount(accountId).then(_ => res.send("account deleted"))
if (Boolean(deleteFiles)) { if (deleteFiles) {
const Files = targetAccount.files.map(e => e) const Files = targetAccount.files.map(e => e)
for (let fileId of Files) { for (let fileId of Files) {