From 5c6868d925939c5681c2966350987f64e5bf1733 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Mon, 24 Sep 2018 19:57:07 -0300 Subject: Small DRY up --- lib/bundler.rb | 8 +++----- 1 file 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) -- cgit v1.2.1