From 17bfce7c43340d63260391b5f7adb40ba41e61f3 Mon Sep 17 00:00:00 2001 From: Simon Grim Date: Mon, 22 Feb 2016 17:10:54 +0500 Subject: [PATCH] delete console.log() in htmlFormatMsg() for empty input string --- js/twister_formatpost.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/twister_formatpost.js b/js/twister_formatpost.js index fe59b91..dd6ae98 100644 --- a/js/twister_formatpost.js +++ b/js/twister_formatpost.js @@ -573,10 +573,8 @@ function htmlFormatMsg(msg, opt) { return msg.str; } - if (!msg) { - console.warn('htmlFormatMsg() error: input string is empty'); + if (!msg) return {html: '', mentions: []}; - } if (opt && opt.markout) var markoutOpt = opt.markout;