diff options
author | Dylan William Hardison <dylan@hardison.net> | 2014-10-14 07:59:57 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2014-10-14 07:59:57 +0200 |
commit | 6d2defefa416c948cb6dc07fe7a3c32566a53cf2 (patch) | |
tree | 02e413f61ac7f091b00e2f6e59e998a45d74e0c3 /extensions/MyDashboard | |
parent | b348b6a10cabddf1b579ebaca0d799def2900e52 (diff) | |
download | bugzilla-6d2defefa416c948cb6dc07fe7a3c32566a53cf2.tar.gz bugzilla-6d2defefa416c948cb6dc07fe7a3c32566a53cf2.tar.xz |
resolve typo (next -> next if)
Diffstat (limited to 'extensions/MyDashboard')
-rw-r--r-- | extensions/MyDashboard/Extension.pm | 4 |
1 files 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); } |