refactor: remove redundant if statement

This commit is contained in:
Andrew Hynes
2022-09-15 21:48:49 -02:30
parent 4f8816ebf2
commit e66b162726
+1 -4
View File
@@ -111,9 +111,6 @@ func (self *StashCommands) SaveStagedChanges(message string) error {
}
func (self *StashCommands) StashUntrackedChanges(message string) error {
if err := self.cmd.New("git stash --include-untracked").Run(); err != nil {
return err
}
return nil
return self.cmd.New("git stash --include-untracked").Run();
}