diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-08-10 10:50:15 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-08-10 10:50:15 -0500 |
commit | e74464116ea107fc4a4b954bd4cf176509ced736 (patch) | |
tree | 198c5890b4ded985ec18dacec60d77bce38fe52b | |
parent | 114d42b4591f18bffac0af1b87f5bc37a41d81e6 (diff) | |
download | bundler-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.rb | 3 |
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) |