move with_actions call to within with_resolution
[scpubgit/DX.git] / lib / DX / Step / ResolveProposition.pm
index 1a00d22..c543d21 100644 (file)
@@ -56,8 +56,9 @@ sub apply_to {
 
 sub _apply_to_hyp {
   my ($self, $old_hyp) = @_;
-  return undef unless my $hyp = $old_hyp->with_actions(@{$self->actions});
-  return $hyp->with_resolution($self->resolves, $self->depends_on);
+  return $old_hyp->with_resolution(
+    $self->resolves, $self->depends_on, $self->actions
+  );
 }
 
 1;