From a36d23c1dd6070ab8603b20e939e077b838b6ba7 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 20 Oct 2021 10:40:08 -0400 Subject: [PATCH] fixup! BitBucketStatus: address Use of uninitialized value in numeric eq (==) --- src/lib/Hydra/Plugin/BitBucketStatus.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Plugin/BitBucketStatus.pm b/src/lib/Hydra/Plugin/BitBucketStatus.pm index 3dcc639a..33e3bc03 100644 --- a/src/lib/Hydra/Plugin/BitBucketStatus.pm +++ b/src/lib/Hydra/Plugin/BitBucketStatus.pm @@ -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 {