summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-08-10 10:50:15 -0500
committerSamuel Giddins <segiddins@segiddins.me>2016-08-10 10:50:15 -0500
commite74464116ea107fc4a4b954bd4cf176509ced736 (patch)
tree198c5890b4ded985ec18dacec60d77bce38fe52b
parent114d42b4591f18bffac0af1b87f5bc37a41d81e6 (diff)
downloadbundler-e74464116ea107fc4a4b954bd4cf176509ced736.tar.gz
[CompactIndexClient] Make keep track of updated endpoints more succinct
-rw-r--r--lib/bundler/vendor/compact_index_client/lib/compact_index_client.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bundler/vendor/compact_index_client/lib/compact_index_client.rb b/lib/bundler/vendor/compact_index_client/lib/compact_index_client.rb
index 1679c17c8a..9ab2722f18 100644
--- a/lib/bundler/vendor/compact_index_client/lib/compact_index_client.rb
+++ b/lib/bundler/vendor/compact_index_client/lib/compact_index_client.rb
@@ -60,9 +60,8 @@ class Bundler::CompactIndexClient
private
def update(local_path, remote_path)
- return if @endpoints.include?(remote_path)
+ return unless @endpoints.add?(remote_path)
@updater.update(local_path, url(remote_path))
- @endpoints << remote_path
end
def update_info(name)