diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2019-03-12 19:20:19 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2019-03-16 10:20:27 +1100 |
commit | c98eddc1857ce6854faabf302186b05f9ce903bf (patch) | |
tree | 68a5c395165623d9b154e77963e3bc7a7e117dc7 /pkg/commands | |
parent | 3b2353b5aecf0b711e419cabc2a0e0a6682110cf (diff) |
appease golangci
Diffstat (limited to 'pkg/commands')
-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 |