diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2018-09-25 20:01:45 -0300 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-03-09 18:25:09 +0100 |
commit | daa04db90e7d55c5ad7c1501f38cf718c62061f4 (patch) | |
tree | ff0a6981feb1dcbfb4665980acb2a4304388fc44 | |
parent | 40382ba6add58a56634f117b08b994b0cb091aeb (diff) | |
download | bundler-daa04db90e7d55c5ad7c1501f38cf718c62061f4.tar.gz |
bundle_dir is already a Pathname
So we can instead call `parent` on it.
-rw-r--r-- | lib/bundler.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb index 9a96fac11a..0d9a523310 100644 --- a/lib/bundler.rb +++ b/lib/bundler.rb @@ -279,7 +279,7 @@ module Bundler rescue GemfileNotFound bundle_dir = default_bundle_dir raise GemfileNotFound, "Could not locate Gemfile or .bundle/ directory" unless bundle_dir - Pathname.new(File.expand_path("..", bundle_dir)) + bundle_dir.parent end end |