summaryrefslogtreecommitdiff
path: root/lib/bundler/endpoint_specification.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2022-09-07 07:13:04 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2022-09-08 11:25:03 +0900
commit24fd2f73d0835eea534225a6381551d591764002 (patch)
tree3447658af19fa723e6c2c4c3e5cbdacda430e424 /lib/bundler/endpoint_specification.rb
parent2d57447ae80e0b0895d6d22d606391b48516ba93 (diff)
Resync Bundler & RubyGems
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6330
Diffstat (limited to 'lib/bundler/endpoint_specification.rb')
-rw-r--r--lib/bundler/endpoint_specification.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/endpoint_specification.rb b/lib/bundler/endpoint_specification.rb
index f0e7ba2595..863544b1f9 100644
--- a/lib/bundler/endpoint_specification.rb
+++ b/lib/bundler/endpoint_specification.rb
@@ -12,7 +12,7 @@ module Bundler
super()
@name = name
@version = Gem::Version.create version
- @platform = platform.nil? ? nil : Gem::Platform.new(platform)
+ @platform = Gem::Platform.new(platform)
@spec_fetcher = spec_fetcher
@dependencies = dependencies.map {|dep, reqs| build_dependency(dep, reqs) }