Skip to content

Commit

Permalink
Remove unnecessary use of ECASE.
Browse files Browse the repository at this point in the history
ECASE used when operating over a variable that is set to one of three
known failures. Allegro didn't like that the error case was
unreachable (clever of it to realize it was unreachable).
  • Loading branch information
rpgoldman committed Jun 24, 2024
1 parent 4b048e6 commit 01f48d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hddl/hddl-pprint.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ in the form of a list of actions."
(parse-integer line :junk-allowed t)
(collecting
(cons id
(ecase format
(case format
(:comma-separated
(comma-separated-task->sexp (subseq (string-upcase line) (1+ pos))))
(:s-expression
Expand Down Expand Up @@ -153,7 +153,7 @@ in the form of a list of actions."
(partition-method-line (subseq line (1+ pos)))
(declare (type string task-string method-id subtasks))
(collecting `(,id
,(ecase format
,(case format
(:default
(space-separated-string->hddl-list (string-upcase task-string)))
(:s-expression
Expand Down

0 comments on commit 01f48d7

Please sign in to comment.