Skip to content

Commit

Permalink
Add check! method to be consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
etagwerker committed Oct 2, 2024
1 parent 4efa7e8 commit 5b8e8cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/services/compats/checks/dependency_subsets_check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ class DependencySubsetsCheck < Base
def call
return unless @compat.pending? && (2..10).cover?(@compat.dependencies.size)

check!
end

def check!
subsets = (1..@compat.dependencies.size - 1).flat_map do |count|
@compat.dependencies.keys.combination(count).map { @compat.dependencies.slice *_1 }
end
Expand Down

0 comments on commit 5b8e8cd

Please sign in to comment.