1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 23:03:32 +00:00

Ban single paren arrow functions (#226)

* Fix glob processing in npm. Ban single param parens

* Match typescript linter rules
This commit is contained in:
Matt Gibson
2021-02-03 22:51:59 -06:00
committed by GitHub
parent 4ae25c5db5
commit 3b91a2c72b
15 changed files with 92 additions and 53 deletions

View File

@@ -65,7 +65,7 @@ export class DeleteCommand {
return Response.error('No attachments available for this item.');
}
const attachments = cipher.attachments.filter((a) => a.id.toLowerCase() === id);
const attachments = cipher.attachments.filter(a => a.id.toLowerCase() === id);
if (attachments.length === 0) {
return Response.error('Attachment `' + id + '` was not found.');
}