Skip to content

Commit 3ff18da

Browse files
committed
Simplify map+to_h to just to_h
1 parent 6527bef commit 3ff18da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/spoom/context/bundle.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def gemfile_lock_specs
4848
return {} unless file?("Gemfile.lock")
4949

5050
parser = Bundler::LockfileParser.new(read_gemfile_lock)
51-
parser.specs.map { |spec| [spec.name, spec] }.to_h
51+
parser.specs.to_h { |spec| [spec.name, spec] }
5252
end
5353

5454
# Get `gem` version from the `Gemfile.lock` content

0 commit comments

Comments
 (0)