From ab04a7cb4655a4f42394e925445f5a3cbcb7a783 Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 2 Jul 2018 17:43:39 +0200 Subject: [PATCH] fix the bug I caused while trying to silence the linter --- rpc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc.js b/rpc.js index d07151996..5a6d64036 100644 --- a/rpc.js +++ b/rpc.js @@ -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) {