Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix a code caching issue.

  • Loading branch information...
commit 8079b04f666906732c04e5aaf280b6f1df6ece0e 1 parent 5cccea3
@jcoglan authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/jake/package.rb
View
6 lib/jake/package.rb
@@ -50,13 +50,13 @@ def code(build_name, with_header = true)
code = head + "\n" + code if head
end
- @code[name] = {
+ cached = @code[build_name] = {
:with_header => code,
:code => head && code[head.size..-1]
}
with_header ?
- @code[name][:with_header] :
- @code[name][:code]
+ cached[:with_header] :
+ cached[:code]
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.