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;
}
if (!msg) {
console.warn('htmlFormatMsg() error: input string is empty');
if (!msg)
return {html: '', mentions: []};
}
if (opt && opt.markout)
var markoutOpt = opt.markout;