mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user