fix the bug I caused while trying to silence the linter

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

@ -1721,7 +1721,7 @@ RPC.create = function (
var session = Sessions[safeKey]; var session = Sessions[safeKey];
var token = session? session.tokens.slice(-1)[0]: ''; var token = session? session.tokens.slice(-1)[0]: '';
var cookie = makeCookie(token).join('|'); 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) { if (typeof(msg) !== 'object' || !msg.length) {

Loading…
Cancel
Save