aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--worktree_status.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/worktree_status.go b/worktree_status.go
index 389482d..61bb6f7 100644
--- a/worktree_status.go
+++ b/worktree_status.go
@@ -294,9 +294,7 @@ func (w *Worktree) doAddDirectory(idx *index.Index, s Status, directory string,
return
}
- if !added && a {
- added = true
- }
+ added = added || a
}
return