Skip to content

Commit

Permalink
Use prereq instead of p for variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Jan 23, 2017
1 parent b2d52fd commit 7be2c78
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/rake/file_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ def timestamp

# Are there any prerequisites with a later time than the given time stamp?
def out_of_date?(stamp)
@prerequisites.any? { |p|
ptask = application[p, @scope]
if ptask.instance_of?(Rake::FileTask)
ptask.timestamp > stamp || ptask.needed?
@prerequisites.any? { |prereq|
prereq_task = application[prereq, @scope]
if prereq_task.instance_of?(Rake::FileTask)
prereq_task.timestamp > stamp || prereq_task.needed?
else
ptask.timestamp > stamp
prereq_task.timestamp > stamp
end
}
end
Expand Down

0 comments on commit 7be2c78

Please sign in to comment.