Skip to content

Commit 6181bce

Browse files
committed
Fix up dhall-format argument expression
1 parent 75267a8 commit 6181bce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dhall-mode.el

+2-2
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ down. You can also disable type-checking entirely by setting
183183

184184
(reformatter-define dhall-format
185185
:program (or dhall-format-command dhall-command)
186-
:args (let ((cmd (if dhall-format-with-ascii '("--ascii") '())))
187-
(if dhall-format-command cmd (cons "format" cmd)))
186+
:args (append (unless dhall-format-command '("format"))
187+
(when dhall-format-with-ascii '("--ascii")))
188188
:group 'dhall
189189
:lighter " DhFmt")
190190

0 commit comments

Comments
 (0)