From: Robert 'phaylon' Sedlacek Date: Fri, 11 May 2012 19:01:58 +0000 (+0000) Subject: don't expect a list of data and a tail in case of an error X-Git-Tag: v0.001_001~73 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=480d348aeff523fff88445df4288c182c2577f69;p=scpubgit%2FSystem-Introspector.git don't expect a list of data and a tail in case of an error --- diff --git a/lib/System/Introspector/Sudoers.pm b/lib/System/Introspector/Sudoers.pm index 89683d7..1351029 100644 --- a/lib/System/Introspector/Sudoers.pm +++ b/lib/System/Introspector/Sudoers.pm @@ -42,6 +42,8 @@ sub _gather_files { } return \@result; }; + return $file => $result + if ref $result eq 'HASH'; return $file => @$result; }