fix the bug I caused while trying to silence the linter

pull/1/head
ansuz 7 years ago
parent a3e0e765b5
commit ab04a7cb46

@ -1721,7 +1721,7 @@ RPC.create = function (
var session = Sessions[safeKey];
var token = session? session.tokens.slice(-1)[0]: '';
var cookie = makeCookie(token).join('|');
respond(String(e), [cookie].concat(typeof(msg) !== 'undefined' ?msg: []));
respond(e ? String(e): e, [cookie].concat(typeof(msg) !== 'undefined' ?msg: []));
};
if (typeof(msg) !== 'object' || !msg.length) {

Loading…
Cancel
Save