as eq returns boolean, if statement is unneeded
This commit is contained in:
parent
3a1bb7f503
commit
7a656bb3aa
1 changed files with 3 additions and 4 deletions
7
smog.el
7
smog.el
|
@ -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 ()
|
||||||
|
|
Loading…
Reference in a new issue