Skip to content
Snippets Groups Projects
Commit b4c3d144 authored by Andy Yates's avatar Andy Yates
Browse files

Making sure we're not leaking readonly variables

parent 78a7daee
No related branches found
No related tags found
No related merge requests found
......@@ -159,7 +159,8 @@ sub single_value_by_key {
if(defined $results) {
my $count = scalar(@{$results});
if($count == 1) {
return $results->[0];
my ($value) = @{$results};
return $value;
}
elsif($count == 0) {
if($warn) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment