Skip to content

Commit c6f73c9

Browse files
committed
refactor / make rubocop happy
1 parent 4b27071 commit c6f73c9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/controllers/plans_controller.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,9 @@ def show
193193
@default_orgs = Org.default_orgs
194194
@all_ggs_grouped_by_org.each do |org, ggs|
195195
# @default_orgs and already selected guidance groups are important.
196-
@important_ggs << [org, ggs] if (@default_orgs.include?(org) || !(ggs & @selected_guidance_groups).empty?) && !@important_ggs.include?([org, ggs])
196+
if (@default_orgs.include?(org) || (ggs & @selected_guidance_groups).any?) && !@important_ggs.include?([org, ggs])
197+
@important_ggs << [org, ggs]
198+
end
197199
end
198200

199201
# Sort the rest by org name for the accordion

0 commit comments

Comments
 (0)