From fa65b5637b5cd2e93b5d886584d6876c2c5eb571 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 17 Jan 2019 10:46:43 -0500 Subject: [PATCH] use some() --- src/importers/enpassJsonImporter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/importers/enpassJsonImporter.ts b/src/importers/enpassJsonImporter.ts index b21e454e514..79310220b41 100644 --- a/src/importers/enpassJsonImporter.ts +++ b/src/importers/enpassJsonImporter.ts @@ -28,7 +28,7 @@ export class EnpassJsonImporter extends BaseImporter implements Importer { } else if (item.template_type.indexOf('creditcard.') === 0) { this.processCard(cipher, item.fields); } else if (item.template_type.indexOf('identity.') < 0 && - item.fields.find((f: any) => f.type === 'password' && !this.isNullOrWhitespace(f.value)) != null) { + item.fields.some((f: any) => f.type === 'password' && !this.isNullOrWhitespace(f.value))) { this.processLogin(cipher, item.fields); } else { this.processNote(cipher, item.fields);