BigW Consortium Gitlab

Commit 0902ba52 by Lin Jen-Shin

Initialize @statuses in status rather than constructor

parent 1ae557c1
......@@ -57,7 +57,6 @@ class Commit
@raw = raw_commit
@project = project
@statuses = {}
end
def id
......@@ -231,6 +230,8 @@ class Commit
end
def status(ref = nil)
@statuses ||= {}
if @statuses.key?(ref)
@statuses[ref]
elsif ref
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment