Steal class loading code from Class::MOP, which isnt confused by __PACKAGE__
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Stats.pm
index 66e9a40..7a9776c 100644 (file)
@@ -62,7 +62,7 @@ sub profile {
     }
     if ($params{parent}) {
     # parent is explicitly defined
-    $prev = $parent = $self->_get_uid($params{parent}) or return undef;
+    $prev = $parent = $self->_get_uid($params{parent});
     }
     if (!$parent) {
     # Find previous node, which is either previous sibling or parent, for ref time.