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

This commit is contained in:
Graham Christensen 2021-10-20 10:40:08 -04:00
parent 30d36da057
commit a36d23c1dd

View file

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