Skip to content
Browse files

forgot to use class constants in one of the new constructor

  • Loading branch information...
1 parent 79b496f commit dbf34fe25c06ea9cc4ff08ec05fb48b9ca07f720 @Takadonet committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Tree/Simple/Visitor.pm
View
2 lib/Tree/Simple/Visitor.pm
@@ -25,7 +25,7 @@ multi method new(Code $func) {
#check to see if $depth is RECURSIVE or CHILDREN_ONLY
multi method new(Code $func,$depth) {
- die 'Not legal value for depth.' if $depth ne 'RECURSIVE' and $depth ne 'CHILDREN_ONLY';
+ die 'Not legal value for depth.' if $depth ne $Tree::Simple::Visitor::RECURSIVE and $depth ne $Tree::Simple::Visitor::CHILDREN_ONLY;
self.bless(*, depth => $depth,filter_fcn => $func, include_trunk=>Bool::True);
}

0 comments on commit dbf34fe

Please sign in to comment.
Something went wrong with that request. Please try again.