BitBucketStatus: address Use of uninitialized value in numeric eq (==)

This commit is contained in:
Graham Christensen 2021-10-19 21:42:22 -04:00
parent 4fd90ec784
commit bf692c9e8c

View file

@ -10,7 +10,7 @@ use Hydra::Helper::CatalystUtils;
sub isEnabled {
my ($self) = @_;
return $self->{config}->{enable_bitbucket_status} == 1;
return defined($self->{config}->{enable_bitbucket_status}) && $self->{config}->{enable_bitbucket_status} == 1;
}
sub toBitBucketState {