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

This commit is contained in:
Sato Hiroyuki 2013-03-07 20:47:04 +09:00
parent b7e5f4556b
commit c0d312bebe

View file

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