[#156] Fix error when first arg is symbol

This commit is contained in:
Radon Rosborough 2023-02-15 19:00:59 -08:00
parent 9f1ee0385a
commit 4f2e4cd925
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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