summaryrefslogtreecommitdiff
path: root/lib/bundler/resolver.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/resolver.rb')
-rw-r--r--lib/bundler/resolver.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bundler/resolver.rb b/lib/bundler/resolver.rb
index 9d947cc9f9..c9df6e533e 100644
--- a/lib/bundler/resolver.rb
+++ b/lib/bundler/resolver.rb
@@ -81,7 +81,9 @@ module Bundler
@specs = {}
ALL.each do |p|
- @specs[p] = reverse.find {|s| s.match_platform(p) }
+ if match = reverse.find {|s| s.match_platform(p) }
+ @specs[p] = match
+ end
end
end