aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRadon Rosborough <radon@intuitiveexplanations.com>2023-02-15 19:00:59 -0800
committerRadon Rosborough <radon@intuitiveexplanations.com>2023-02-15 19:01:53 -0800
commit4f2e4cd925d479904ab18c73613893ebac1b58b9 (patch)
treee4c00f28da629155cf444861d64878baac8e216e
parent9f1ee0385a96aecfd40b920b37df2b137a8de402 (diff)
[#156] Fix error when first arg is symbol
-rw-r--r--CHANGELOG.md2
-rw-r--r--apheleia.el2
2 files changed, 2 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 12e8f98..6692d8d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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
diff --git a/apheleia.el b/apheleia.el
index 2ec217f..3a847b6 100644
--- a/apheleia.el
+++ b/apheleia.el
@@ -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