瀏覽代碼

Fixes bad if nesting

main
Eric Amodio 4 年之前
父節點
當前提交
541daa2854
共有 1 個文件被更改,包括 6 次插入4 次删除
  1. +6
    -4
      src/views/nodes/branchNode.ts

+ 6
- 4
src/views/nodes/branchNode.ts 查看文件

@ -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…
取消
儲存