lint compliance

This commit is contained in:
yflory 2018-01-08 17:41:10 +01:00
parent 0cea5f4596
commit 7defde3c59
3 changed files with 8 additions and 7 deletions

View File

@ -182,13 +182,14 @@ define([], function () {
});
network.historyKeeper = hk;
var cfg = padData = {
var cfg = {
validateKey: validateKey,
lastKnownHash: lastKnownHash,
owners: owners,
expire: expire,
password: password
};
padData = cfg;
var msg = ['GET_HISTORY', wc.id, cfg];
// Add the validateKey if we are the channel creator and we have a validateKey
if (hk) { network.sendto(hk, JSON.stringify(msg)); }

View File

@ -457,7 +457,7 @@ define([
var allFiles = files[FILES_DATA];
return Object.keys(allFiles).filter(function (id) {
return allFiles[id].owners && allFiles[id].owners.indexOf(edPub) !== -1;
}).map(function (k) { return Number(k); });;
}).map(function (k) { return Number(k); });
};
/**

View File

@ -2755,13 +2755,13 @@ define([
else if ($(this).hasClass('cp-app-drive-context-deleteowned')) {
// TODO
// Remove owned pad from drive and remove from server
var pathsList = [];
paths.forEach(function (p) { pathsList.push(p.path); });
var msg = Messages._getKey("fm_deleteOwnedPads"); // XXX
UI.confirm(msg, function(res) {
var pathsListD = [];
paths.forEach(function (p) { pathsListD.push(p.path); });
var msgD = Messages._getKey("fm_deleteOwnedPads"); // XXX
UI.confirm(msgD, function(res) {
$(window).focus();
if (!res) { return; }
filesOp.delete(pathsList, refresh);
filesOp.delete(pathsListD, refresh);
// TODO HERE
// RPC to delete from server?
});