Subject: | Nagios::Object::Config::find_object when not found |
Date: | Wed, 11 Nov 2015 17:05:37 +0000 |
To: | bug-Nagios-Object [...] rt.cpan.org |
From: | Stephen Baynes <stephen.baynes [...] smoothwall.net> |
Nagios::Object::Config::find_object does not return a useful value
when it fails to find anything. It just falls off the end of the
function. Just needs a return undef; at the end of the function to
consistently return an undef value.
P.S. the return () at the end of Nagios::Object::Config::find_objects
won't behave as expected if called in scalar context. Should be return
my @r; or return @{[]};