From 541daa28547670dabaad2dae76037b6301264b14 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Mon, 12 Oct 2020 04:56:21 -0400 Subject: [PATCH] Fixes bad if nesting --- src/views/nodes/branchNode.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/views/nodes/branchNode.ts b/src/views/nodes/branchNode.ts index 6729ebe..c372b67 100644 --- a/src/views/nodes/branchNode.ts +++ b/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(