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

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

[nongnu] elpa/spell-fu 646f40ba06 54/86: Cleanup: use 'when' instead of


From: ELPA Syncer
Subject: [nongnu] elpa/spell-fu 646f40ba06 54/86: Cleanup: use 'when' instead of 'if'
Date: Thu, 7 Jul 2022 12:03:43 -0400 (EDT)

branch: elpa/spell-fu
commit 646f40ba064a7d689fdcbe13475c2d51d890577f
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>

    Cleanup: use 'when' instead of 'if'
---
 spell-fu.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/spell-fu.el b/spell-fu.el
index 467883e80a..eb3b06d45c 100644
--- a/spell-fu.el
+++ b/spell-fu.el
@@ -196,7 +196,7 @@ Notes:
           (let ((dict-match (and (string-match dict-re dict) (match-string 0 
dict))))
             (when dict-match
               (let ((fullpath (concat (file-name-as-directory tmp-path) 
dict-match ".dat")))
-                (if (file-readable-p fullpath)
+                (when (file-readable-p fullpath)
                   (throw 'datafile fullpath))))))))))
 
 (defun spell-fu--aspell-lang-from-dict (dict)



reply via email to

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