Skip to content

Commit

Permalink
Actually have to call the callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Jnesselr committed Aug 9, 2024
1 parent 4e4097e commit 351d85c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Issues/ChoiceHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ public function run(): bool
return false;
}

$runResult = $this->choices->get($choiceResult);
$callback = $this->choices->get($choiceResult);
$runResult = $callback();
if(is_null($runResult)) {
return true; // We assume a null just means it was run successfully as a lambda or something.
} else if(is_bool($runResult)) {
Expand Down

0 comments on commit 351d85c

Please sign in to comment.