1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-04 03:48:07 +02:00

fix ambiguous condition

This commit is contained in:
Jesse Duffield 2019-11-05 18:13:02 +11:00
parent cd3874ffb7
commit 861bcc38be

View File

@ -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)
}