Skip to content

Commit

Permalink
Remove a misleading error condition
Browse files Browse the repository at this point in the history
The removed lines are not related to any local code and will catch up
an EVAL_ERROR set inside the caller context of add_history causing this
to fail with an error where it must not
  • Loading branch information
oliwel committed Sep 19, 2022
1 parent 298301c commit a04ebf8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/Workflow.pm
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,6 @@ sub add_history {
workflow_error "I don't know how to add a history of ", "type '",
ref($item), "'";
}

if ($EVAL_ERROR) {
workflow_error "Unable to assert history object";
}
}
push @{ $self->{_histories} }, @to_add;
$self->notify_observers( 'add history', \@to_add );
Expand Down

0 comments on commit a04ebf8

Please sign in to comment.