aboutsummaryrefslogtreecommitdiffstats
path: root/worktree_status.go
diff options
context:
space:
mode:
authorThinkChaos <ThinkChaos@users.noreply.github.com>2023-05-31 11:13:35 -0400
committerThinkChaos <ThinkChaos@users.noreply.github.com>2023-05-31 11:13:35 -0400
commit3f7913e4c889b557e1b5d89faf9bbcce869fb7ce (patch)
tree96c53b6e383ae8b24212161fa0e6563f364b7f09 /worktree_status.go
parentcb287f782ad8b5847a721d3f06265a0e9750d41f (diff)
downloadgo-git-3f7913e4c889b557e1b5d89faf9bbcce869fb7ce.tar.gz
squash: replace `if` with `||`
Diffstat (limited to 'worktree_status.go')
-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