handle missing branch name
This commit is contained in:
parent
83a23e3c00
commit
a452199d40
@ -91,10 +91,12 @@ 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];
|
||||
if ( defined $ns ) {
|
||||
$status->{info}->{$ns} = JSON::false;
|
||||
$status->{info}->{$ns} = JSON::true if grep /^$s$/, @{$list};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
foreach my $s ( keys %{ $status->{info} } ) {
|
||||
if ( $status->{info}->{$s} == JSON::false ) {
|
||||
|
Loading…
Reference in New Issue
Block a user