lib/reveal-ck/rake_task.rb in reveal-ck-3.3.0 vs lib/reveal-ck/rake_task.rb in reveal-ck-3.3.1

- old
+ new

@@ -58,12 +58,10 @@ def define(args, &task_block) last_comment = ::Rake.application.last_comment desc 'Generate a reveal.js presentation' unless last_comment task name, *args do |_, task_args| RakeFileUtils.__send__(:verbose, verbose) do - if task_block - task_block.call(*[self, task_args].slice(0, task_block.arity)) - end + yield(*[self, task_args].slice(0, task_block.arity)) if task_block run_task verbose end end end end