mirror of
https://github.com/nextcloud/passman.git
synced 2024-11-10 17:27:40 +08:00
Padlock importer: fix code style
Fix a couple of requested scrutinizer issues. Signed-off-by: ßingen <bingentxu@gmail.com>
This commit is contained in:
parent
ec35aef756
commit
1863b175e8
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue