summaryrefslogtreecommitdiff
path: root/app/controllers/concerns/labels_as_hash.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/concerns/labels_as_hash.rb')
-rw-r--r--app/controllers/concerns/labels_as_hash.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/concerns/labels_as_hash.rb b/app/controllers/concerns/labels_as_hash.rb
index e428520f709..601d3bf50eb 100644
--- a/app/controllers/concerns/labels_as_hash.rb
+++ b/app/controllers/concerns/labels_as_hash.rb
@@ -16,9 +16,7 @@ module LabelsAsHash
if already_set_labels.present?
titles = already_set_labels.map(&:title)
label_hashes.each do |hash|
- if titles.include?(hash['title'])
- hash[:set] = true
- end
+ hash[:set] = true if titles.include?(hash['title'])
end
end
end