Fix return value comparison in prettier-js-mode-maybe

This commit is contained in:
Adam Goldsmith 2021-12-01 14:59:39 -05:00
parent b8d80f0d77
commit 243f1145f8

View File

@ -1018,7 +1018,7 @@
:init :init
(defun prettier-js-mode-maybe () (defun prettier-js-mode-maybe ()
(interactive) (interactive)
(when (not (call-process "prettier" nil nil nil "--find-config-path" (buffer-file-name))) (when (= 0 (call-process "prettier" nil nil nil "--find-config-path" (buffer-file-name)))
(prettier-js-mode t)))) (prettier-js-mode t))))
(use-package show-marks (use-package show-marks