#75: remove unnecessary code

This commit is contained in:
Vokhmin Alexey V 2013-04-04 15:17:34 +04:00
parent aa3f8af0bf
commit d5f790ff05
1 changed files with 1 additions and 3 deletions

View File

@ -145,9 +145,7 @@ class ActivityFeedObserver < ActiveRecord::Observer
end
when 'BuildList'
# Do not show mass build activity in activity feeds
return true if record.mass_build
if record.mass_build.blank? && (
if record.mass_build.blank? && ( # Do not show mass build activity in activity feeds
record.status_changed? && BUILD_LIST_STATUSES.include?(record.status) ||
record.status == BuildList::BUILD_PENDING && record.bs_id_changed?
)