aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-notifications.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-09-05 12:50:07 +0200
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-09-05 13:10:59 +0200
commit87705c415d6ec3bbf2ed13b844d9c8d1400f1fa4 (patch)
treeeae3a9eac5b037249ad84590df07060f2060e95b /lisp/mastodon-notifications.el
parent3ea9d6882464debcb48048c1a1affcd64bc8b220 (diff)
use seq-empty-p and string-empty-p calls
Diffstat (limited to 'lisp/mastodon-notifications.el')
-rw-r--r--lisp/mastodon-notifications.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/mastodon-notifications.el b/lisp/mastodon-notifications.el
index 32cc4ee..c0ca684 100644
--- a/lisp/mastodon-notifications.el
+++ b/lisp/mastodon-notifications.el
@@ -255,7 +255,7 @@ of the toot responded to."
(defun mastodon-notifications--timeline (json)
"Format JSON in Emacs buffer."
- (if (equal json '[])
+ (if (seq-empty-p json)
(message "Looks like you have no (more) notifications for the moment.")
(mapc #'mastodon-notifications--by-type json)
(goto-char (point-min))))