Skip to content

Commit

Permalink
Fix executable-find check doesn't respect apheleia-remote-algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
mohkale committed Oct 1, 2023
1 parent da1084b commit 694ae8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apheleia-formatters.el
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,8 @@ purposes."
(let ((load-suffixes '(".el")))
(locate-library "apheleia"))))))
exec-path)))
(when (executable-find (apheleia-formatter--arg1 ctx))
(when (executable-find (apheleia-formatter--arg1 ctx)
(eq apheleia-remote-algorithm 'remote))
(apheleia--execute-formatter-process
:ctx ctx
:callback
Expand Down

0 comments on commit 694ae8c

Please sign in to comment.