Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Commit

Permalink
linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kspearrin committed Jan 6, 2017
1 parent c772502 commit 74945e0
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/app/services/importService.js
Original file line number Diff line number Diff line change
Expand Up @@ -1818,7 +1818,6 @@
case 'url':
login.uri = trimUri(field.value);
break;
case 'none':
default:
if (!login.username && isField(field.label, _usernameFieldNames)) {
login.username = field.value;
Expand Down Expand Up @@ -2199,7 +2198,7 @@
folderRelationships = [];

angular.forEach(results.data, function (value, key) {
var chamber = value['ChamberName'];
var chamber = value.ChamberName;

var folderIndex = folders.length,
loginIndex = logins.length,
Expand All @@ -2218,16 +2217,16 @@
}

var login = {
favorite: value['Favorite'] && value['Favorite'] === '1' ? true : false,
favorite: value.Favorite && value.Favorite === '1' ? true : false,
uri: value['Secret URL'] && value['Secret URL'] !== '' ? fixUri(value['Secret URL']) : null,
username: null,
password: null,
notes: value['Notes'] && value['Notes'] !== '' ? value['Notes'] : '',
notes: value.Notes && value.Notes !== '' ? value.Notes : '',
name: value['Secret Name'] && value['Secret Name'] !== '' ? value['Secret Name'] : '--'
};

parseData(value['SecretData'], login);
parseData(value['CustomData'], login);
parseData(value.SecretData, login);
parseData(value.CustomData, login);

if (login.notes === '') {
login.notes = null;
Expand Down

0 comments on commit 74945e0

Please sign in to comment.