Fix prettier-js-mode-maybe to check for 0 exit code
instead of checking for empty string
This commit is contained in:
parent
5f8e0480e5
commit
a8cced9d29
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user