diff options
Diffstat (limited to 'pkg/commands/git.go')
-rw-r--r-- | pkg/commands/git.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/commands/git.go b/pkg/commands/git.go index ec53d985d..f447ec7ad 100644 --- a/pkg/commands/git.go +++ b/pkg/commands/git.go @@ -836,7 +836,7 @@ func (c *GitCommand) DiscardOldFileChanges(commits []*Commit, commitIndex int, f // one where we handle the possibility of a credential request, and the other // where we continue the rebase if c.usingGpg() { - errors.New(c.Tr.SLocalize("DisabledForGPG")) + return errors.New(c.Tr.SLocalize("DisabledForGPG")) } commitSha := commits[commitIndex].Sha @@ -872,7 +872,7 @@ func (c *GitCommand) DiscardOldFileChanges(commits []*Commit, commitIndex int, f // amend the commit cmd, err = c.AmendHead() if cmd != nil { - errors.New("received unexpected pointer to cmd") + return errors.New("received unexpected pointer to cmd") } if err != nil { return err |