Commit c0d312be authored by Sato Hiroyuki's avatar Sato Hiroyuki

Refactor: Removing a if statement, because the nil value is already removed in the view template.

parent b7e5f455
...@@ -118,7 +118,6 @@ ...@@ -118,7 +118,6 @@
for (var j = 0, jj = this.commits[i].parents.length; j < jj; j++) { for (var j = 0, jj = this.commits[i].parents.length; j < jj; j++) {
c = this.preparedCommits[this.commits[i].parents[j][0]]; c = this.preparedCommits[this.commits[i].parents[j][0]];
ps = this.commits[i].parents[j][1]; ps = this.commits[i].parents[j][1];
if (c) {
var cx = offsetX + 20 * c.time var cx = offsetX + 20 * c.time
, cy = offsetY + 10 * c.space , cy = offsetY + 10 * c.space
, psy = offsetY + 10 * ps; , psy = offsetY + 10 * ps;
...@@ -171,7 +170,6 @@ ...@@ -171,7 +170,6 @@
}); });
} }
} }
}
if (this.commits[i].refs) { if (this.commits[i].refs) {
this.appendLabel(x, y, this.commits[i].refs); this.appendLabel(x, y, this.commits[i].refs);
......
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