Padlock importer: fix code style

Fix a couple of requested scrutinizer issues.

Signed-off-by: ßingen <bingentxu@gmail.com>
This commit is contained in:
ßingen 2017-07-28 00:26:47 +02:00
parent ec35aef756
commit 1863b175e8
No known key found for this signature in database
GPG key ID: D0BDBB04208ABCC4

View file

@ -47,8 +47,9 @@ var PassmanImporter = PassmanImporter || {};
var _credential = PassmanImporter.newCredential();
var j = 0;
for (var k in row) {
if (!row[k])
if (!row[k]) {
continue;
}
if (k == 'name') {
_credential.label = row.name;
continue;
@ -65,8 +66,8 @@ var PassmanImporter = PassmanImporter || {};
_credential.url = row[k];
continue;
}
if (k.toLowerCase() == 'e-mail'
|| k.toLowerCase() == 'email') {
if (k.toLowerCase() == 'e-mail' ||
k.toLowerCase() == 'email') {
_credential.email = row[k];
continue;
}