Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/rake/task_manager.rb
Original file line numberDiff line numberDiff line change
Expand Up@@ -35,7 +35,7 @@ def define_task(task_class, *args, &block) # :nodoc:
task.set_arg_names(arg_names) unless arg_names.empty?
if Rake::TaskManager.record_task_metadata
add_location(task)
task.add_description(get_description(task))
task.add_description(get_description)
end
task.enhance(Task.format_deps(deps), &block)
task | order_only unless order_only.nil?
Expand DownExpand Up@@ -316,7 +316,7 @@ def make_sources(task_name, task_pattern, extensions)
end

# Return the current description, clearing it in the process.
def get_description(task)
def get_description
desc = @last_description
@last_description = nil
desc
Expand Down