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
1 changed files with 1 additions and 4 deletions

View File

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