delete console.log() in htmlFormatMsg() for empty input string

This commit is contained in:
Simon Grim 2016-02-22 17:10:54 +05:00
parent a9e750c257
commit 17bfce7c43

View File

@ -573,10 +573,8 @@ function htmlFormatMsg(msg, opt) {
return msg.str; return msg.str;
} }
if (!msg) { if (!msg)
console.warn('htmlFormatMsg() error: input string is empty');
return {html: '', mentions: []}; return {html: '', mentions: []};
}
if (opt && opt.markout) if (opt && opt.markout)
var markoutOpt = opt.markout; var markoutOpt = opt.markout;