diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2017-06-16 21:06:09 -0400 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2017-06-27 17:25:12 +0200 |
commit | 21bb6a76d72ca4671255cee801a9eef3450ea1e4 (patch) | |
tree | 05a3364d09e249ba8f9e08a7b6c0eed515aa5ab2 | |
parent | 6e1506ff8cc7393111267c3c5a0a29f8ecb4ecaa (diff) | |
download | bundler-21bb6a76d72ca4671255cee801a9eef3450ea1e4.tar.gz |
Avoid grabbing the BUNDLE_APP_CONFIG env var twice
-rw-r--r-- | lib/bundler.rb | 4 |
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 |