From a9e948362d1a3208328c81069e0a0b88825dfe0d Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 24 Jun 2013 15:20:27 -0400 Subject: dump nothing, not an empty string, if there is no result in DataDumper --- lib/Reply/Plugin/DataDumper.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Reply/Plugin/DataDumper.pm b/lib/Reply/Plugin/DataDumper.pm index 7ac6be4..55a85e1 100644 --- a/lib/Reply/Plugin/DataDumper.pm +++ b/lib/Reply/Plugin/DataDumper.pm @@ -30,7 +30,7 @@ sub new { sub mangle_result { my $self = shift; my (@result) = @_; - return Dumper(@result == 0 ? '' : @result == 1 ? $result[0] : \@result); + return Dumper(@result == 0 ? () : @result == 1 ? $result[0] : \@result); } 1; -- cgit v1.2.3-54-g00ecf