From 1de193eea1a5a564494140e7580d3b09c7b68e3f Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 12 Apr 2019 09:45:47 -0400 Subject: [PATCH] use map --- src/models/data/loginData.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/models/data/loginData.ts b/src/models/data/loginData.ts index e3139a8c51..c173c2f162 100644 --- a/src/models/data/loginData.ts +++ b/src/models/data/loginData.ts @@ -20,10 +20,7 @@ export class LoginData { this.totp = data.totp; if (data.uris) { - this.uris = []; - data.uris.forEach((u) => { - this.uris.push(new LoginUriData(u)); - }); + this.uris = data.uris.map((u) => new LoginUriData(u)); } } }