diff --git a/src/lib/Hydra/Plugin/EmailNotification.pm b/src/lib/Hydra/Plugin/EmailNotification.pm index e30f48af..b29e8532 100644 --- a/src/lib/Hydra/Plugin/EmailNotification.pm +++ b/src/lib/Hydra/Plugin/EmailNotification.pm @@ -81,9 +81,9 @@ sub buildFinished { my ($authors, $nrCommits, $emailable_authors) = getResponsibleAuthors($build, $self->{plugins}); my $authorList; - if (scalar keys %{authors} > 0) { + if (scalar keys %{$authors} > 0) { my @x = map { "$_ <$authors->{$_}>" } (sort keys %{$authors}); - $authorList = join(" or ", scalar @x > 1 ? join(", ", @[0..scalar @x - 2]): (), $x[-1]); + $authorList = join(" or ", scalar @x > 1 ? join(", ", @x[0..scalar @x - 2]): (), $x[-1]); $addresses{$_} = { builds => [ $build ] } foreach (@{$emailable_authors}); }