From 74945e03ce3dc61a7be4abec2a324678f8b1a33f Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 6 Jan 2017 00:03:33 -0500 Subject: [PATCH] linter fixes --- src/app/services/importService.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/app/services/importService.js b/src/app/services/importService.js index 688c37026d..8db7941819 100644 --- a/src/app/services/importService.js +++ b/src/app/services/importService.js @@ -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;