Get rid of a warning in the HipChat plugin

This commit is contained in:
Eelco Dolstra 2013-07-19 14:43:04 +02:00
parent b47d9814e3
commit 6574d125c7

View file

@ -9,7 +9,7 @@ sub buildFinished {
my ($self, $build, $dependents) = @_;
my $cfg = $self->{config}->{hipchat};
my @config = ref $cfg eq "ARRAY" ? @$cfg : ($cfg);
my @config = defined $cfg ? ref $cfg eq "ARRAY" ? @$cfg : ($cfg) : ();
my $baseurl = $self->{config}->{'base_uri'} || "http://localhost:3000";