commit d6de6295df667e55e75b6b5b9c7ef372df9735fd
parent 48762d6c2de053946e203903cf3c5a39543f4b4f
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date: Wed, 4 May 2016 00:15:59 +0200
SBO::Lib: get_sbo_version coerced false values to undef uselessly
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm
@@ -610,7 +610,7 @@ sub get_from_info {
sub get_sbo_version {
script_error('get_sbo_version requires an argument.') unless @_ == 1;
my $version = get_from_info(LOCATION => shift, GET => 'VERSION');
- return $$version[0] ? $$version[0] : undef;
+ return $version->[0];
}
# for each installed sbo, find out whether or not the version in the tree is