linter fixes

This commit is contained in:
Kyle Spearrin 2017-01-06 00:03:33 -05:00
parent c772502af5
commit 74945e03ce
1 changed files with 5 additions and 6 deletions

View File

@ -1818,7 +1818,6 @@
case 'url': case 'url':
login.uri = trimUri(field.value); login.uri = trimUri(field.value);
break; break;
case 'none':
default: default:
if (!login.username && isField(field.label, _usernameFieldNames)) { if (!login.username && isField(field.label, _usernameFieldNames)) {
login.username = field.value; login.username = field.value;
@ -2199,7 +2198,7 @@
folderRelationships = []; folderRelationships = [];
angular.forEach(results.data, function (value, key) { angular.forEach(results.data, function (value, key) {
var chamber = value['ChamberName']; var chamber = value.ChamberName;
var folderIndex = folders.length, var folderIndex = folders.length,
loginIndex = logins.length, loginIndex = logins.length,
@ -2218,16 +2217,16 @@
} }
var login = { 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, uri: value['Secret URL'] && value['Secret URL'] !== '' ? fixUri(value['Secret URL']) : null,
username: null, username: null,
password: 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'] : '--' name: value['Secret Name'] && value['Secret Name'] !== '' ? value['Secret Name'] : '--'
}; };
parseData(value['SecretData'], login); parseData(value.SecretData, login);
parseData(value['CustomData'], login); parseData(value.CustomData, login);
if (login.notes === '') { if (login.notes === '') {
login.notes = null; login.notes = null;