1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-31 08:20:37 +01:00

linter fixes

This commit is contained in:
Kyle Spearrin 2017-01-06 00:03:33 -05:00
parent c772502af5
commit 74945e03ce

View File

@ -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;
@ -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,
@ -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;