branch: externals/modus-themes
commit 3f330da835b5d2b0871c1c0baa469b47b7bd3477
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>

    Simplify modus-themes-toggle
---
 modus-themes.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/modus-themes.el b/modus-themes.el
index 32f87a6806..c4ca2b2b09 100644
--- a/modus-themes.el
+++ b/modus-themes.el
@@ -1367,9 +1367,7 @@ Disable other themes per 
`modus-themes-disable-other-themes'."
   (if-let* ((themes (modus-themes--toggle-theme-p))
             (one (car themes))
             (two (cadr themes)))
-      (if (eq (car custom-enabled-themes) one)
-          (modus-themes-load-theme two)
-        (modus-themes-load-theme one))
+      (modus-themes-load-theme (if (eq (car custom-enabled-themes) one) two 
one))
     (modus-themes-load-theme (modus-themes--select-prompt))))
 
 (defun modus-themes--list-colors-render (buffer theme &optional mappings &rest 
_)

Reply via email to