diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-04-27 08:43:59 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-04-27 12:08:35 +0200 |
commit | 42b689f3fa53f58ee0b60c8db970f60e3619eb1d (patch) | |
tree | b047ce57b0befec3a8b1121f5e2b81885526bc2e /lib/bundler/shared_helpers.rb | |
parent | 4038f317881da37fc4ae6cfbe11d7d473aeef09e (diff) | |
download | bundler-42b689f3fa53f58ee0b60c8db970f60e3619eb1d.tar.gz |
Remove ruby 2.2 only workaround
Diffstat (limited to 'lib/bundler/shared_helpers.rb')
-rw-r--r-- | lib/bundler/shared_helpers.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/bundler/shared_helpers.rb b/lib/bundler/shared_helpers.rb index 73c6dc3097..a0982f561f 100644 --- a/lib/bundler/shared_helpers.rb +++ b/lib/bundler/shared_helpers.rb @@ -103,9 +103,7 @@ module Bundler # # @see {Bundler::PermissionError} def filesystem_access(path, action = :write, &block) - # Use block.call instead of yield because of a bug in Ruby 2.2.2 - # See https://github.com/bundler/bundler/issues/5341 for details - block.call(path.dup.untaint) + yield(path.dup.untaint) rescue Errno::EACCES raise PermissionError.new(path, action) rescue Errno::EAGAIN |