mirror of
https://github.com/bitwarden/browser
synced 2025-12-22 11:13:46 +00:00
lint fixes
This commit is contained in:
@@ -240,13 +240,17 @@ function initAutofill() {
|
||||
|
||||
totpPromise = self.totpService.isAutoCopyEnabled().then(function (enabled) {
|
||||
if (enabled) {
|
||||
/* jshint ignore:start */
|
||||
return self.totpService.getCode(login.totp);
|
||||
/* jshint ignore:end */
|
||||
}
|
||||
|
||||
return null;
|
||||
}).then(function (code) {
|
||||
if (code) {
|
||||
/* jshint ignore:start */
|
||||
self.utilsService.copyToClipboard(code);
|
||||
/* jshint ignore:end */
|
||||
}
|
||||
|
||||
return code;
|
||||
|
||||
@@ -220,6 +220,7 @@ function initCryptoService(constantsService) {
|
||||
var decPromises = [];
|
||||
for (var orgId in obj.encOrgKeys) {
|
||||
if (obj.encOrgKeys.hasOwnProperty(orgId)) {
|
||||
/* jshint ignore:start */
|
||||
(function (orgIdInstance) {
|
||||
var promise = self.rsaDecrypt(obj.encOrgKeys[orgIdInstance]).then(function (decValueB64) {
|
||||
orgKeys[orgIdInstance] = new SymmetricCryptoKey(decValueB64, true);
|
||||
@@ -229,6 +230,7 @@ function initCryptoService(constantsService) {
|
||||
});
|
||||
decPromises.push(promise);
|
||||
})(orgId);
|
||||
/* jshint ignore:end */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -87,9 +87,11 @@ function initFolderService() {
|
||||
}];
|
||||
self.getAll(function (folders) {
|
||||
for (var i = 0; i < folders.length; i++) {
|
||||
/* jshint ignore:start */
|
||||
promises.push(folders[i].decrypt().then(function (folder) {
|
||||
decFolders.push(folder);
|
||||
}));
|
||||
/* jshint ignore:end */
|
||||
}
|
||||
|
||||
Q.all(promises).then(function () {
|
||||
|
||||
@@ -144,5 +144,5 @@ function initLockService(self) {
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -172,9 +172,11 @@ function initLoginService() {
|
||||
var decLogins = [];
|
||||
self.getAll(function (logins) {
|
||||
for (var i = 0; i < logins.length; i++) {
|
||||
/* jshint ignore:start */
|
||||
promises.push(logins[i].decrypt().then(function (login) {
|
||||
decLogins.push(login);
|
||||
}));
|
||||
/* jshint ignore:end */
|
||||
}
|
||||
|
||||
Q.all(promises).then(function () {
|
||||
|
||||
Reference in New Issue
Block a user