Skip to content

Commit

Permalink
Sort
Browse files Browse the repository at this point in the history
  • Loading branch information
jhlee-mitre committed Jan 13, 2025
1 parent 3f4e47b commit 808828b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ def check(context)
end

island_resources = resource_ids - referenced_resources - referencing_resources
sorted_island_resources = Set.new(island_resources.to_a.sort)
island_resources.to_a.sort!

if sorted_island_resources.any?
if island_resources.any?
message = "Found resources that have no resolved references and are not referenced: #{
sorted_island_resources.join(', ')}"
island_resources.join(', ')}"
result = EvaluationResult.new(message, rule: self)
else
message = 'All resources are reachable'
Expand Down

0 comments on commit 808828b

Please sign in to comment.