forked from lix-project/hydra
BitBucketStatus: address Use of uninitialized value in numeric eq (==)
This commit is contained in:
parent
4fd90ec784
commit
bf692c9e8c
|
@ -10,7 +10,7 @@ use Hydra::Helper::CatalystUtils;
|
||||||
|
|
||||||
sub isEnabled {
|
sub isEnabled {
|
||||||
my ($self) = @_;
|
my ($self) = @_;
|
||||||
return $self->{config}->{enable_bitbucket_status} == 1;
|
return defined($self->{config}->{enable_bitbucket_status}) && $self->{config}->{enable_bitbucket_status} == 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub toBitBucketState {
|
sub toBitBucketState {
|
||||||
|
|
Loading…
Reference in a new issue