summaryrefslogtreecommitdiffstats
path: root/extensions/MyDashboard
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2014-10-14 07:59:57 +0200
committerDylan William Hardison <dylan@hardison.net>2014-10-14 07:59:57 +0200
commit6d2defefa416c948cb6dc07fe7a3c32566a53cf2 (patch)
tree02e413f61ac7f091b00e2f6e59e998a45d74e0c3 /extensions/MyDashboard
parentb348b6a10cabddf1b579ebaca0d799def2900e52 (diff)
downloadbugzilla-6d2defefa416c948cb6dc07fe7a3c32566a53cf2.tar.gz
bugzilla-6d2defefa416c948cb6dc07fe7a3c32566a53cf2.tar.xz
resolve typo (next -> next if)
Diffstat (limited to 'extensions/MyDashboard')
-rw-r--r--extensions/MyDashboard/Extension.pm4
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);
}