dependency map up, some code running
[scpubgit/DX.git] / lib / DX / Role / Update.pm
index a3eace0..f7cfcb5 100644 (file)
@@ -6,8 +6,8 @@ has target_path => (is => 'ro', required => 1);
 
 sub _with_value_at_path {
   my ($self, $scope, $final_value, @path) = @_;
+  return $final_value->($scope) unless @path;
   my ($first, @rest) = @path;
-  return $final_value->($scope) unless $first;
   my $inner = $scope->get_member_at($first);
   my $value = (
     @rest