[LrdeTools] 256: Fix a bug a block arity.

30 Sep
2005
30 Sep
'05
1:56 p.m.
https://svn.lrde.epita.fr/svn/lrdetools/trunk Index: ChangeLog from Nicolas Pouillard <ertai@lrde.epita.fr> Fix a bug a block arity. * vcs/lib/vcs/vcs.rb: Call with the error handler with an argument only if it can handle it. vcs.rb | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: vcs/lib/vcs/vcs.rb --- vcs/lib/vcs/vcs.rb (revision 255) +++ vcs/lib/vcs/vcs.rb (working copy) @@ -539,7 +539,7 @@ end def call_handlers - @@handlers.each { |k, v| v[k] } + @@handlers.each { |k, v| (v.arity.abs == 1)? v[k] : v[] } end def call_conf_checkers
7267
Age (days ago)
7267
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nicolas Pouillard