markdown: Remove unnecessary null check.

This null check has been nonfunctional at least since we removed
moment.js from the project.

Fixes an issue reported in #18273.
This commit is contained in:
Tim Abbott
2021-04-27 23:20:44 -07:00
parent 807cbdff7d
commit c5ed782581

View File

@@ -320,7 +320,7 @@ function handleTimestamp(time) {
}
const escaped_time = _.escape(time);
if (timeobject === null || !isValid(timeobject)) {
if (!isValid(timeobject)) {
// Unsupported time format: rerender accordingly.
// We do not show an error on these formats in local echo because