diff options
author | Jesse Luehrs <doy@tozt.net> | 2012-10-08 15:25:22 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2012-10-08 15:25:22 -0500 |
commit | fc3a232b4651894456961a143475b34fe948e08f (patch) | |
tree | c533913df89c69401e4772067b9d3b5147181db8 /lib/Text/Handlebars/Compiler.pm | |
parent | 2fc8a855e6e6a8dc2d43f959e9c5ecd2ae9ea4c8 (diff) | |
download | text-handlebars-fc3a232b4651894456961a143475b34fe948e08f.tar.gz text-handlebars-fc3a232b4651894456961a143475b34fe948e08f.zip |
this is already a built-in thing
Diffstat (limited to 'lib/Text/Handlebars/Compiler.pm')
-rw-r--r-- | lib/Text/Handlebars/Compiler.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Text/Handlebars/Compiler.pm b/lib/Text/Handlebars/Compiler.pm index 384732c..a1cfddb 100644 --- a/lib/Text/Handlebars/Compiler.pm +++ b/lib/Text/Handlebars/Compiler.pm @@ -128,7 +128,7 @@ sub _generate_block { $self->call($node, '(is_falsy)', $name->clone), $self->call($node, '(make_array)', $self->parser->literal(1)), $self->make_ternary( - $self->call($node, '(is_array)', $name->clone), + $self->call($node, 'is_array_ref', $name->clone), $name->clone, $self->call($node, '(make_array)', $self->parser->literal(1)), ), |