From 6d2defefa416c948cb6dc07fe7a3c32566a53cf2 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Tue, 14 Oct 2014 01:59:57 -0400 Subject: resolve typo (next -> next if) --- extensions/MyDashboard/Extension.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/MyDashboard/Extension.pm b/extensions/MyDashboard/Extension.pm index 51e774b5b..d79e3e2ec 100644 --- a/extensions/MyDashboard/Extension.pm +++ b/extensions/MyDashboard/Extension.pm @@ -177,7 +177,7 @@ sub bug_end_of_create { # Anyone added to the CC list of a bug is now interested in that bug. foreach my $cc_user (@{ $bug->cc_users }) { - next $user->id == $cc_user->id; + next if $user->id == $cc_user->id; Bugzilla::Extension::MyDashboard::BugInterest->mark($cc_user->id, $bug->id, $timestamp); } @@ -196,7 +196,7 @@ sub bug_end_of_update { my %old_cc = map { $_->id => $_ } grep { defined } @{ $old_bug->cc_users }; my @added = grep { not $old_cc{ $_->id } } grep { defined } @{ $bug->cc_users }; foreach my $cc_user (@added) { - next $user->id == $cc_user->id; + next if $user->id == $cc_user->id; Bugzilla::Extension::MyDashboard::BugInterest->mark($cc_user->id, $bug->id, $timestamp); } -- cgit v1.2.3-24-g4f1b