Fix rubocop warnings

This commit is contained in:
Tom Hughes 2016-10-31 21:24:10 +00:00
parent 96b1bff9fb
commit 282ff4936c
7 changed files with 37 additions and 22 deletions

View file

@ -370,7 +370,7 @@ class Relation < ActiveRecord::Base
# materially change the rest of the relation.
any_relations =
changed_members.collect { |_id, type| type == "relation" }
.inject(false) { |a, e| a || e }
.inject(false) { |acc, elem| acc || elem }
update_members = if tags_changed || any_relations
# add all non-relation bounding boxes to the changeset