mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-08 23:56:15 +02:00
refactor: remove redundant if statement
This commit is contained in:
parent
4f8816ebf2
commit
e66b162726
@ -111,9 +111,6 @@ func (self *StashCommands) SaveStagedChanges(message string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (self *StashCommands) StashUntrackedChanges(message string) error {
|
func (self *StashCommands) StashUntrackedChanges(message string) error {
|
||||||
if err := self.cmd.New("git stash --include-untracked").Run(); err != nil {
|
return self.cmd.New("git stash --include-untracked").Run();
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user