branch: externals/fontaine
commit 4902042b56f56972917a92e681c7c669a7722490
Author: Protesilaos Stavrou <i...@protesilaos.com>
Commit: Protesilaos Stavrou <i...@protesilaos.com>

    Replace (not (null ...)) with just the symbol
---
 fontaine.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/fontaine.el b/fontaine.el
index e51d725aa1..89ef2447b2 100644
--- a/fontaine.el
+++ b/fontaine.el
@@ -294,14 +294,14 @@ This is then used to restore the last value with the 
function
     ;; ;; Read this: <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=45920>
     ;; ;; Hence why the following fails.  Keeping it for posterity...
     ;; (set-face-attribute face nil :family family :weight weight :height 
height)
-    (when (and (symbolp weight)
-               (not (null weight))
+    (when (and weight
+               (symbolp weight)
                (eq (face-attribute face :weight) weight)
                (stringp family))
       (internal-set-lisp-face-attribute face :family family frames))
-    (when (and (symbolp weight) (not (null weight)))
+    (when (and weight (symbolp weight))
       (internal-set-lisp-face-attribute face :weight weight frames))
-    (when (and (symbolp slant) (not (null slant)))
+    (when (and slant (symbolp slant))
       (internal-set-lisp-face-attribute face :slant slant frames))
     (when (stringp family)
       (internal-set-lisp-face-attribute face :family family frames))

Reply via email to