summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2015-12-13 16:28:58 +0800
committerSamuel Giddins <segiddins@segiddins.me>2016-01-25 10:49:36 -0600
commit49a032ed49a96acf93829a06dbd8ba00c64c4c05 (patch)
treeeabe853d8f9e977c2cb59d778d3e9775eca5fc03 /lib
parente554ef0746d9669d2a2a4b917d45dbe069b48d02 (diff)
downloadbundler-49a032ed49a96acf93829a06dbd8ba00c64c4c05.tar.gz
select once instead of twice
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/source/rubygems.rb3
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