diff options
author | ThinkChaos <ThinkChaos@users.noreply.github.com> | 2023-05-31 11:13:35 -0400 |
---|---|---|
committer | ThinkChaos <ThinkChaos@users.noreply.github.com> | 2023-05-31 11:13:35 -0400 |
commit | 3f7913e4c889b557e1b5d89faf9bbcce869fb7ce (patch) | |
tree | 96c53b6e383ae8b24212161fa0e6563f364b7f09 /worktree_status.go | |
parent | cb287f782ad8b5847a721d3f06265a0e9750d41f (diff) | |
download | go-git-3f7913e4c889b557e1b5d89faf9bbcce869fb7ce.tar.gz |
squash: replace `if` with `||`
Diffstat (limited to 'worktree_status.go')
-rw-r--r-- | worktree_status.go | 4 |
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 |