summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2018-09-24 19:57:07 -0300
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2020-03-09 18:25:09 +0100
commit5c6868d925939c5681c2966350987f64e5bf1733 (patch)
tree4c09333ba1f0f5c67fa30bcad043f962b8303f89
parentbd01eb67f0db6fb83de7c4d7766a4489aa87c4b9 (diff)
downloadbundler-5c6868d925939c5681c2966350987f64e5bf1733.tar.gz
Small DRY up
-rw-r--r--lib/bundler.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb
index 99cf99199b..ab293c5f8e 100644
--- a/lib/bundler.rb
+++ b/lib/bundler.rb
@@ -288,13 +288,11 @@ module Bundler
app_config_pathname = Pathname.new(app_config)
if app_config_pathname.absolute?
- app_config_pathname
- else
- root.join(app_config_pathname)
+ return app_config_pathname
end
- else
- root.join(".bundle")
end
+
+ root.join(app_config || ".bundle")
end
def app_cache(custom_path = nil)