From d4f7fd79872bb844d2d390f2618ad3fcd71539f9 Mon Sep 17 00:00:00 2001 From: t1anchen <143927+t1anchen@users.noreply.github.com> Date: Wed, 15 May 2024 10:46:26 +0100 Subject: [PATCH] fix #77: prettier-js cleanse the code --- prettier-js.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prettier-js.el b/prettier-js.el index 08d90b8..576d88d 100644 --- a/prettier-js.el +++ b/prettier-js.el @@ -183,8 +183,8 @@ a `before-save-hook'." (with-current-buffer patchbuf (erase-buffer)) (if (zerop (apply 'call-process - prettier-js-command bufferfile (list (list :file outputfile) errorfile) - nil (append prettier-js-args width-args (list "--stdin" "--stdin-filepath" buffer-file-name)))) + prettier-js-command nil (list (list :file outputfile) errorfile) + nil (append prettier-js-args (list bufferfile) width-args (list "--stdin" "--stdin-filepath" buffer-file-name)))) (progn (call-process-region (point-min) (point-max) "diff" nil patchbuf nil "-n" "--strip-trailing-cr" "-" outputfile)