fix the bug I caused while trying to silence the linter

This commit is contained in:
ansuz 2018-07-02 17:43:39 +02:00
parent a3e0e765b5
commit ab04a7cb46
1 changed files with 1 additions and 1 deletions

2
rpc.js
View File

@ -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) {