aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2012-05-16 11:25:25 +0100
committerSeb Bacon <seb.bacon@gmail.com>2012-05-16 11:25:25 +0100
commitf738a559e9615e7d479694946a2bad32d95861a4 (patch)
tree58163d277139fce63f37d7de119cfe1fb9b1e765
parentb7667c1b69cd22aea84931845e8e8763ade60404 (diff)
Remove redundant condition (when deciding who gets email alerts)
-rw-r--r--app/models/track_mailer.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/app/models/track_mailer.rb b/app/models/track_mailer.rb
index e633e1b45..92da7c376 100644
--- a/app/models/track_mailer.rb
+++ b/app/models/track_mailer.rb
@@ -49,7 +49,6 @@ class TrackMailer < ApplicationMailer
for user in users
next if !user.should_be_emailed? || !user.receive_email_alerts
- next if !user.should_be_emailed?
email_about_things = []
track_things = TrackThing.find(:all, :conditions => [ "tracking_user_id = ? and track_medium = ?", user.id, 'email_daily' ])
for track_thing in track_things