From 806af3fe689324e9a8607ad863df31e0c933d2f9 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Wed, 16 Oct 2013 08:57:48 -0400 Subject: [PATCH] Fix typos I could've sworn I tested this... Signed-off-by: Shea Levy --- src/lib/Hydra/Plugin/EmailNotification.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}); }