handle missing branch name
This commit is contained in:
parent
83a23e3c00
commit
a452199d40
@ -91,8 +91,10 @@ sub figure_status {
|
|||||||
# handle this stuff with a regex so we don't have to specify "22.11" kinda stuff
|
# handle this stuff with a regex so we don't have to specify "22.11" kinda stuff
|
||||||
my @b = grep /$s/, @{$list};
|
my @b = grep /$s/, @{$list};
|
||||||
my $ns = $b[0];
|
my $ns = $b[0];
|
||||||
$status->{info}->{$ns} = JSON::false;
|
if ( defined $ns ) {
|
||||||
$status->{info}->{$ns} = JSON::true if grep /^$s$/, @{$list};
|
$status->{info}->{$ns} = JSON::false;
|
||||||
|
$status->{info}->{$ns} = JSON::true if grep /^$s$/, @{$list};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user