lint compliance

pull/1/head
yflory 4 years ago
parent a44c19f996
commit 27124997a5

@ -2083,7 +2083,7 @@ define([
Store.addSharedFolder = function (clientId, data, cb) { Store.addSharedFolder = function (clientId, data, cb) {
var s = getStore(data.teamId); var s = getStore(data.teamId);
s.manager.addSharedFolder(data, function (id) { s.manager.addSharedFolder(data, function (id) {
if (id && typeof(id) == "object" && id.error) { if (id && typeof(id) === "object" && id.error) {
return void cb(id); return void cb(id);
} }
var send = data.teamId ? s.sendEvent : sendDriveEvent; var send = data.teamId ? s.sendEvent : sendDriveEvent;

@ -214,7 +214,7 @@ define([
if (!Env.folders[id]) { return {}; } if (!Env.folders[id]) { return {}; }
var obj = Env.folders[id].proxy.metadata || {}; var obj = Env.folders[id].proxy.metadata || {};
for (var k in Env.user.proxy[UserObject.SHARED_FOLDERS][id] || {}) { for (var k in Env.user.proxy[UserObject.SHARED_FOLDERS][id] || {}) {
var data = JSON.parse(JSON.stringify(Env.user.proxy[UserObject.SHARED_FOLDERS][id][k] || {})); var data = Util.clone(Env.user.proxy[UserObject.SHARED_FOLDERS][id][k] || {});
if (k === "href" && data.indexOf('#') === -1) { if (k === "href" && data.indexOf('#') === -1) {
try { try {
data = Env.user.userObject.cryptor.decrypt(data); data = Env.user.userObject.cryptor.decrypt(data);

Loading…
Cancel
Save