summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-06-16 21:06:09 -0400
committerSamuel Giddins <segiddins@segiddins.me>2017-06-27 17:25:12 +0200
commit21bb6a76d72ca4671255cee801a9eef3450ea1e4 (patch)
tree05a3364d09e249ba8f9e08a7b6c0eed515aa5ab2
parent6e1506ff8cc7393111267c3c5a0a29f8ecb4ecaa (diff)
downloadbundler-21bb6a76d72ca4671255cee801a9eef3450ea1e4.tar.gz
Avoid grabbing the BUNDLE_APP_CONFIG env var twice
-rw-r--r--lib/bundler.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb
index c6d68c49de..c9d8846ce5 100644
--- a/lib/bundler.rb
+++ b/lib/bundler.rb
@@ -216,8 +216,8 @@ module Bundler
end
def app_config_path
- if ENV["BUNDLE_APP_CONFIG"]
- Pathname.new(ENV["BUNDLE_APP_CONFIG"]).expand_path(root)
+ if app_config = ENV["BUNDLE_APP_CONFIG"]
+ Pathname.new(app_config).expand_path(root)
else
root.join(".bundle")
end