Skip to content

Commit

Permalink
[#156] Fix error when first arg is symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
raxod502 committed Feb 16, 2023
1 parent 9f1ee03 commit 4f2e4cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ The format is based on [Keep a Changelog].
details.
* Npx commands in apheleia-formatters are not overwritten when
expanding binary path to node_modules directory ([#152]).
* Error is no longer reported when the first element of a command is
an evaluable form rather than a literal string ([#156]).

### Formatters
* [`crystal tool
Expand Down
2 changes: 0 additions & 2 deletions apheleia.el
Original file line number Diff line number Diff line change
Expand Up @@ -766,8 +766,6 @@ cmd is to be run."
(when (memq 'npx command)
(setq npx t)
(setq command (remq 'npx command)))
(unless (stringp (car command))
(error "Command cannot start with %S" (car command)))
(when (and npx remote-match)
(when-let ((project-dir
(locate-dominating-file
Expand Down

0 comments on commit 4f2e4cd

Please sign in to comment.