fix(gs/emacs): Return empty string if nothing in inbox

otherwise we'd return the string "nil", which with the substring-ing
that was happening would end up as "Inbox: i" in the status bar

Change-Id: I567a6042b592dd9313bfa22d480c22936494a8c1
This commit is contained in:
Griffin Smith 2021-12-01 16:27:09 -05:00
parent 9eec83843e
commit 909c1d02a2

View file

@ -49,7 +49,7 @@
(defun grfn/num-inbox-items-message ()
(let ((n (grfn/num-inbox-items)))
(unless (zerop n)
(if (zerop n) ""
(format "%d %s"
n
(if (= 1 n) "item" "items")))))