as eq returns boolean, if statement is unneeded

This commit is contained in:
conao3 2020-02-11 04:38:51 +09:00
parent 3a1bb7f503
commit 7a656bb3aa
No known key found for this signature in database
GPG key ID: F4B6A5A98EB01936

View file

@ -130,10 +130,9 @@ Further details can be found in the =style(1)= man page.\n"
(defun smog--style-installed-p () (defun smog--style-installed-p ()
"Is the style command installed?" "Is the style command installed?"
(if (eq 0 (condition-case nil (eq 0 (condition-case nil
(call-process "style") (call-process "style")
(error (message "The program 'style' isn't installed or can't be found.")))) (error (message "The program 'style' isn't installed or can't be found.")))))
t nil))
;;;###autoload ;;;###autoload
(defun smog-check-buffer () (defun smog-check-buffer ()