summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/bundler/fetcher.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/bundler/fetcher.rb b/lib/bundler/fetcher.rb
index 7b92a436c2..cf451d0572 100644
--- a/lib/bundler/fetcher.rb
+++ b/lib/bundler/fetcher.rb
@@ -379,12 +379,10 @@ module Bundler
def add_configured_credentials(uri)
auth = Bundler.settings[uri.to_s]
-
- if auth && uri.user.nil?
+ if auth
uri = uri.dup
uri.user, uri.password = *auth.split(":", 2)
end
-
AnonymizableURI.new(uri)
end