mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-15 00:15:32 +02:00
477 Remove unnecessary variable check
hasInlineMergeConflicts is always true with hasMergeConflicts is true
This commit is contained in:
committed by
Jesse Duffield
parent
e83ef9858b
commit
827837b0b9
@ -473,7 +473,7 @@ func (c *GitCommand) RebaseMode() (string, error) {
|
||||
func (c *GitCommand) DiscardAllFileChanges(file *File) error {
|
||||
// if the file isn't tracked, we assume you want to delete it
|
||||
quotedFileName := c.OSCommand.Quote(file.Name)
|
||||
if file.HasStagedChanges || file.HasMergeConflicts || file.HasInlineMergeConflicts {
|
||||
if file.HasStagedChanges || file.HasMergeConflicts {
|
||||
if err := c.OSCommand.RunCommand(fmt.Sprintf("git reset -- %s", quotedFileName)); err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user