Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Remove an unused block argument to avoid creating Proc objects. #87

Merged
merged 1 commit into from

3 participants

@k-tsj

I propose that an unused block argument should be removed.
It creates unnecessary Proc objects.

I applied similar patches to standard libraries in ruby-trunk(ruby/ruby@c3749b6).

Thanks

@rctay

Looks correct.

@jimweirich jimweirich merged commit 225ed21 into jimweirich:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/rake/task_arguments.rb
View
2  lib/rake/task_arguments.rb
@@ -47,7 +47,7 @@ def values_at(*keys)
keys.map { |k| lookup(k) }
end
- def method_missing(sym, *args, &block)
+ def method_missing(sym, *args)
lookup(sym.to_sym)
end
Something went wrong with that request. Please try again.