Skip to content

Commit

Permalink
Allow empty argmap
Browse files Browse the repository at this point in the history
  • Loading branch information
lspector committed Jan 12, 2024
1 parent 70e9f81 commit e6361ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/propeller/utils.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"Returns a random instruction from a supplied pool of instructions, evaluating
ERC-producing functions to a constant literal."
[instructions argmap]
(case (:closes argmap)
(case (or (:closes argmap) :specified)
:specified (let [instruction (rand-nth instructions)]
(if (fn? instruction)
(instruction)
Expand Down

0 comments on commit e6361ec

Please sign in to comment.