diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2018-09-24 19:57:07 -0300 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-03-09 18:25:09 +0100 |
commit | 5c6868d925939c5681c2966350987f64e5bf1733 (patch) | |
tree | 4c09333ba1f0f5c67fa30bcad043f962b8303f89 | |
parent | bd01eb67f0db6fb83de7c4d7766a4489aa87c4b9 (diff) | |
download | bundler-5c6868d925939c5681c2966350987f64e5bf1733.tar.gz |
Small DRY up
-rw-r--r-- | lib/bundler.rb | 8 |
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) |