summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVít Ondruch <vondruch@redhat.com>2018-09-06 11:16:22 +0200
committerVít Ondruch <vondruch@redhat.com>2018-09-25 09:11:15 +0200
commitb490e73db45c44ad0e827a8bbe67a68b8001318f (patch)
tree2bd4e010d50d90ad14077f2c80c12869fb51f27f
parentc4892480aba36d31a3b6e232f17a705aaad1b730 (diff)
downloadbundler-b490e73db45c44ad0e827a8bbe67a68b8001318f.tar.gz
Fix assignment in condition.
-rw-r--r--lib/bundler/source/metadata.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/source/metadata.rb b/lib/bundler/source/metadata.rb
index ff8861c710..47a751debb 100644
--- a/lib/bundler/source/metadata.rb
+++ b/lib/bundler/source/metadata.rb
@@ -21,7 +21,7 @@ module Bundler
# can't point to the actual gemspec or else the require paths will be wrong
s.loaded_from = File.expand_path("..", __FILE__)
end
- if loaded_spec = nil && Bundler.rubygems.loaded_specs("bundler")
+ if loaded_spec = Bundler.rubygems.loaded_specs("bundler")
idx << loaded_spec # this has to come after the fake gemspec, to override it
elsif local_spec = Bundler.rubygems.find_name("bundler").find {|s| s.version.to_s == VERSION }
idx << local_spec