From 4f2e4cd925d479904ab18c73613893ebac1b58b9 Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Wed, 15 Feb 2023 19:00:59 -0800 Subject: [PATCH] [#156] Fix error when first arg is symbol --- CHANGELOG.md | 2 ++ apheleia.el | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 12e8f985..6692d8d9 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 2ec217f4..3a847b65 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