Browse Source

Fixes bad if nesting

main
Eric Amodio 4 years ago
parent
commit
541daa2854
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      src/views/nodes/branchNode.ts

+ 6
- 4
src/views/nodes/branchNode.ts View File

@ -145,10 +145,12 @@ export class BranchNode
children.push(
new BranchTrackingStatusNode(this.view, this, this.branch, status, 'same', this.root),
);
} else if (status.state.ahead) {
children.push(
new BranchTrackingStatusNode(this.view, this, this.branch, status, 'ahead', this.root),
);
} else {
if (status.state.ahead) {
children.push(
new BranchTrackingStatusNode(this.view, this, this.branch, status, 'ahead', this.root),
);
}
if (status.state.behind) {
children.push(

Loading…
Cancel
Save