summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2019-11-05 18:13:02 +1100
committerJesse Duffield <jessedduffield@gmail.com>2019-11-05 19:22:01 +1100
commit861bcc38be1f21b4b9d7a1e6a1530a01a45b4986 (patch)
tree89526c7caee8538e7f9fa320acc5bc8d75fbc819
parentcd3874ffb7826099574f2661475ff24298d16a64 (diff)
fix ambiguous condition
-rw-r--r--pkg/commands/patch_manager.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/patch_manager.go b/pkg/commands/patch_manager.go
index 4abf737a0..3f0f0ac06 100644
--- a/pkg/commands/patch_manager.go
+++ b/pkg/commands/patch_manager.go
@@ -210,5 +210,5 @@ func (p *PatchManager) Reset() {
}
func (p *PatchManager) IsEmpty() bool {
- return p != nil && p.CommitSha == "" || len(p.fileInfoMap) == 0
+ return p != nil && (p.CommitSha == "" || len(p.fileInfoMap) == 0)
}