Skip to content

Commit 4ef3ba5

Browse files
authored
Merge pull request #623 from takmar/remove-unused-argument-from-get_description
Remove unused argument
2 parents f69c1d3 + 17b6731 commit 4ef3ba5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rake/task_manager.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def define_task(task_class, *args, &block) # :nodoc:
3535
task.set_arg_names(arg_names) unless arg_names.empty?
3636
if Rake::TaskManager.record_task_metadata
3737
add_location(task)
38-
task.add_description(get_description(task))
38+
task.add_description(get_description)
3939
end
4040
task.enhance(Task.format_deps(deps), &block)
4141
task | order_only unless order_only.nil?
@@ -316,7 +316,7 @@ def make_sources(task_name, task_pattern, extensions)
316316
end
317317

318318
# Return the current description, clearing it in the process.
319-
def get_description(task)
319+
def get_description
320320
desc = @last_description
321321
@last_description = nil
322322
desc

0 commit comments

Comments
 (0)