Minor syntax change.

This commit is contained in:
aforge
2020-01-20 22:34:39 -08:00
parent 0081ed3716
commit f100385c79
7 changed files with 14 additions and 31 deletions
+1 -1
View File
@@ -347,7 +347,7 @@ class ContextMenu extends React.Component {
retryMessage(params, errorHandler) {
const topic = this.props.tinode.getTopic(params.topicName);
// Remove the existing message entry.
if (topic == null || !topic.flushMessage(params.seq)) {
if (!topic || !topic.flushMessage(params.seq)) {
return;
}
const msg = topic.createMessage(params.content, false);