emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/swsw cf70d1d22c 071/146: ; Make an if statement more reada


From: ELPA Syncer
Subject: [nongnu] elpa/swsw cf70d1d22c 071/146: ; Make an if statement more readable
Date: Wed, 25 May 2022 02:59:47 -0400 (EDT)

branch: elpa/swsw
commit cf70d1d22caf5fde02e9b1732ac3a14d86ad5312
Author: Daniel Semyonov <cmstr@dsemy.com>
Commit: Daniel Semyonov <cmstr@dsemy.com>

    ; Make an if statement more readable
---
 swsw.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/swsw.el b/swsw.el
index 5a8d542245..235c1504f8 100644
--- a/swsw.el
+++ b/swsw.el
@@ -70,7 +70,7 @@
   "Set the variable ‘swsw-id-chars’.
 Check that the new list has at least two elements, set SYM’s value to
 CHARS, and call ‘swsw-update’."
-  (if (> 2 (length chars))
+  (if (< (length chars) 2)
       (user-error
        "‘swsw-id-chars’ should contain at least two characters")
     (set-default sym chars)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]