Simplify modus-themes-version

This commit is contained in:
Protesilaos Stavrou 2022-10-22 03:29:39 +03:00
parent 7dbd19f174
commit b42b754e94
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -123,10 +123,7 @@ those would count as part of '1.1.0-dev'.")
If optional INSERT argument is provided from Lisp or as a prefix
argument, insert the `modus-themes--version' at point."
(interactive "P")
(if-let ((version modus-themes--version)
((or insert current-prefix-arg)))
(insert version)
(message version)))
(funcall (if insert 'insert 'message) modus-themes--version))
;;;###autoload
(defun modus-themes-report-bug ()