diff options
author | Andre Arko <andre@arko.net> | 2015-12-13 16:28:58 +0800 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-01-25 10:49:36 -0600 |
commit | 49a032ed49a96acf93829a06dbd8ba00c64c4c05 (patch) | |
tree | eabe853d8f9e977c2cb59d778d3e9775eca5fc03 /lib | |
parent | e554ef0746d9669d2a2a4b917d45dbe069b48d02 (diff) | |
download | bundler-49a032ed49a96acf93829a06dbd8ba00c64c4c05.tar.gz |
select once instead of twice
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/source/rubygems.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bundler/source/rubygems.rb b/lib/bundler/source/rubygems.rb index baac674e5a..fa840aa18d 100644 --- a/lib/bundler/source/rubygems.rb +++ b/lib/bundler/source/rubygems.rb @@ -327,8 +327,7 @@ module Bundler end def api_fetchers - api_fetchers = fetchers.select(&:use_api) - api_fetchers.select {|f| f.fetchers.first.api_fetcher? } + fetchers {|f| f.use_api && f.fetchers.first.api_fetcher? } end def remote_specs |