summaryrefslogtreecommitdiff
path: root/lib/bundler/settings.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/settings.rb')
-rw-r--r--lib/bundler/settings.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/settings.rb b/lib/bundler/settings.rb
index 3abe009d13..01594066c3 100644
--- a/lib/bundler/settings.rb
+++ b/lib/bundler/settings.rb
@@ -279,7 +279,7 @@ module Bundler
}xo
def load_config(config_file)
- return unless config_file
+ return {} unless config_file
SharedHelpers.filesystem_access(config_file, :read) do |file|
valid_file = file.exist? && !file.size.zero?
return {} if ignore_config? || !valid_file