Skip to content

Commit

Permalink
Refactor block params
Browse files Browse the repository at this point in the history
  • Loading branch information
lovro-bikic committed Oct 24, 2024
1 parent 2f340b9 commit 80e78f0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/polariscope/scanner/gem_versions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ def versions_for(gem_name)
attr_reader :spec_type
attr_reader :gem_versions

# rubocop:disable Style/HashEachMethods
def fetch_gems
gem_tuples.each { |name_tuple, _| gem_versions[name_tuple.name] << name_tuple.version }
gem_tuples.each { |(name_tuple, _)| gem_versions[name_tuple.name] << name_tuple.version }
end
# rubocop:enable all

def gem_tuples
Gem::SpecFetcher.fetcher.detect(spec_type) { |name_tuple| dependency_names.include?(name_tuple.name) }
Expand Down

0 comments on commit 80e78f0

Please sign in to comment.