handle missing branch name

This commit is contained in:
Aaron Bieber 2023-05-23 10:38:27 -06:00
parent 83a23e3c00
commit a452199d40
No known key found for this signature in database

View File

@ -91,8 +91,10 @@ sub figure_status {
# handle this stuff with a regex so we don't have to specify "22.11" kinda stuff
my @b = grep /$s/, @{$list};
my $ns = $b[0];
$status->{info}->{$ns} = JSON::false;
$status->{info}->{$ns} = JSON::true if grep /^$s$/, @{$list};
if ( defined $ns ) {
$status->{info}->{$ns} = JSON::false;
$status->{info}->{$ns} = JSON::true if grep /^$s$/, @{$list};
}
}
}