branch: externals/ement
commit ba2ba0bba896df05a5d741614261556813211ce0
Author: Adam Porter <[email protected]>
Commit: Adam Porter <[email protected]>

    Tidy: (key topic)
---
 ement-room-list.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/ement-room-list.el b/ement-room-list.el
index b924119a5d..5f503e465f 100644
--- a/ement-room-list.el
+++ b/ement-room-list.el
@@ -242,9 +242,8 @@ from recent to non-recent for rooms updated in the past 
hour.")
 
 (ement-room-list-define-key topic (&key name regexp)
   (pcase-let ((`[,(cl-struct ement-room topic) ,_session] item))
-    (when topic
-      (when (string-match-p regexp topic)
-        name))))
+    (when (and topic (string-match-p regexp topic))
+      name)))
 
 (ement-room-list-define-key unread ()
   (pcase-let ((`[,room ,session] item))

Reply via email to