Skip to content

Commit

Permalink
refactor / make rubocop happy
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronskiba committed Jan 15, 2024
1 parent 4b27071 commit c6f73c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/plans_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ def show
@default_orgs = Org.default_orgs
@all_ggs_grouped_by_org.each do |org, ggs|
# @default_orgs and already selected guidance groups are important.
@important_ggs << [org, ggs] if (@default_orgs.include?(org) || !(ggs & @selected_guidance_groups).empty?) && !@important_ggs.include?([org, ggs])
if (@default_orgs.include?(org) || (ggs & @selected_guidance_groups).any?) && !@important_ggs.include?([org, ggs])
@important_ggs << [org, ggs]
end
end

# Sort the rest by org name for the accordion
Expand Down

0 comments on commit c6f73c9

Please # to comment.