jshint compliance

This commit is contained in:
ansuz 2017-03-15 16:04:52 +01:00
parent bd9efd7c04
commit 15a67afc75
2 changed files with 4 additions and 4 deletions

2
rpc.js
View file

@ -19,7 +19,7 @@ RPC.create = function (config, cb) {
// load pin-store...
console.log('loading rpc module...');
rpc = function (ctx, msg, respond) {
var rpc = function (ctx, msg, respond) {
switch (msg[0]) {
case 'ECHO':
respond(void 0, msg);

View file

@ -994,15 +994,15 @@ define([
var fo = proxy.fo;
var list = fo.getFilesDataFiles().map(function (href) {
var parsed = Cryptpad.parsePadUrl(href);
var parsed = common.parsePadUrl(href);
if (!parsed || !parsed.hash) { return; }
parsed = Cryptpad.parseHash(parsed.hash);
parsed = common.parseHash(parsed.hash);
var channel = parsed.channel;
if (!channel) { return; }
var hex = Cryptpad.base64ToHex(channel);
var hex = common.base64ToHex(channel);
return hex;
}).filter(function (x) { return x; }).sort();