Sfoglia il codice sorgente

Fixes bad if nesting

main
Eric Amodio 4 anni fa
parent
commit
541daa2854
1 ha cambiato i file con 6 aggiunte e 4 eliminazioni
  1. +6
    -4
      src/views/nodes/branchNode.ts

+ 6
- 4
src/views/nodes/branchNode.ts Vedi 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(

Caricamento…
Annulla
Salva