summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColby Swandale <colby@taplaboratories.com>2017-04-17 14:12:02 +1000
committerColby Swandale <colby@taplaboratories.com>2017-04-17 14:12:02 +1000
commit51a9e064f5e17454f7a1d5a97e43033b83081c6f (patch)
treef0a7a2ba19a3485b7a8930e39300d2bcf0f146b1
parent3e22722833065498da6ab799cebbbccc10b7152f (diff)
downloadbundler-51a9e064f5e17454f7a1d5a97e43033b83081c6f.tar.gz
use yield when calling a block with no arguments
-rw-r--r--lib/bundler/dsl.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/dsl.rb b/lib/bundler/dsl.rb
index b22ebc53cd..e46c7035ba 100644
--- a/lib/bundler/dsl.rb
+++ b/lib/bundler/dsl.rb
@@ -217,9 +217,9 @@ module Bundler
args.each { @groups.pop }
end
- def install_if(*args, &blk)
+ def install_if(*args)
@install_conditionals.concat args
- blk.call
+ yield
ensure
args.each { @install_conditionals.pop }
end