mu4e: fix some compiler warnings

This commit is contained in:
Dirk-Jan C. Binnema
2021-10-17 13:26:38 +03:00
parent 5dfd6afdf0
commit 7156ff7fac
2 changed files with 8 additions and 6 deletions

View File

@ -1,4 +1,4 @@
;;; mu4e-message.el -- part of mu4e, the mu mail user agent -*- lexical-binding: t -*-
;;; mu4e-message.el -- part of mu4e -*- lexical-binding: t -*-
;; Copyright (C) 2012-2020 Dirk-Jan C. Binnema
@ -97,7 +97,8 @@ Like `mu4e-message-field-nil', but will sanitize nil values:
- all string field except body-txt/body-html: nil -> \"\"
- numeric fields + dates : nil -> 0
- all others : return the value
Thus, function will return nil for empty lists, non-existing body-txt or body-html."
Thus, function will return nil for empty lists, non-existing body-txt
or body-html."
(let ((val (mu4e-message-field-raw msg field)))
(cond
(val