1
0
mirror of https://github.com/bitwarden/cli synced 2025-12-16 08:13:21 +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

@@ -20,11 +20,11 @@ export class CipherResponse extends CipherWithIds implements BaseResponse {
this.object = 'item';
this.build(o);
if (o.attachments != null) {
this.attachments = o.attachments.map((a) => new AttachmentResponse(a));
this.attachments = o.attachments.map(a => new AttachmentResponse(a));
}
this.revisionDate = o.revisionDate;
if (o.passwordHistory != null) {
this.passwordHistory = o.passwordHistory.map((h) => new PasswordHistoryResponse(h));
this.passwordHistory = o.passwordHistory.map(h => new PasswordHistoryResponse(h));
}
if (o.type === CipherType.Login && o.login != null) {
this.login = new LoginResponse(o.login);