Refactor: Removing a if statement, because the nil value is already removed in the view template.
This commit is contained in:
parent
b7e5f4556b
commit
c0d312bebe
1 changed files with 47 additions and 49 deletions
|
@ -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 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue