Fix prettier-js-mode-maybe to check for 0 exit code

instead of checking for empty string
This commit is contained in:
Adam Goldsmith 2021-05-26 00:42:13 -04:00
parent 5f8e0480e5
commit a8cced9d29

View File

@ -984,10 +984,7 @@
:init :init
(defun prettier-js-mode-maybe () (defun prettier-js-mode-maybe ()
(interactive) (interactive)
(when (not (string= (when (not (call-process "prettier" nil nil nil "--find-config-path" (buffer-file-name)))
""
(shell-command-to-string
(concat "prettier --find-config-path " (buffer-file-name)))))
(prettier-js-mode t)))) (prettier-js-mode t))))
(use-package show-marks (use-package show-marks