diff options
author | John Barrett <john@jbrt.org> | 2015-08-23 22:24:17 +0100 |
---|---|---|
committer | John Barrett <john@jbrt.org> | 2015-08-23 22:24:17 +0100 |
commit | bd278ef850b5ab57d6afe2780073e6bde5c1a836 (patch) | |
tree | 26e33ec6c5692894e4638b99bea13f2c5429aca1 | |
parent | 4a19c586a3ad3f3a8ca1b8b3dc2ba761c57e8cb9 (diff) | |
download | reply-bd278ef850b5ab57d6afe2780073e6bde5c1a836.tar.gz reply-bd278ef850b5ab57d6afe2780073e6bde5c1a836.zip |
Only Data::Printer::p when we have @result
-rw-r--r-- | lib/Reply/Plugin/DataPrinter.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Reply/Plugin/DataPrinter.pm b/lib/Reply/Plugin/DataPrinter.pm index f048a47..2c0d934 100644 --- a/lib/Reply/Plugin/DataPrinter.pm +++ b/lib/Reply/Plugin/DataPrinter.pm @@ -20,6 +20,7 @@ This plugin uses L<Data::Printer> to format results. sub mangle_result { my ($self, @result) = @_; + return unless @result; return p(@result, return_value => 'dump'); } |