1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-12-03 22:59:46 +02:00

Swallow errors entirely, instead of assigning and ignoring them

This commit is contained in:
Christian Muehlhaeuser
2019-07-19 03:55:33 +02:00
committed by Jesse Duffield
parent 975a5315b0
commit 69ac0036e6
2 changed files with 3 additions and 5 deletions

View File

@@ -261,10 +261,8 @@ func (c *CommitListBuilder) getMergeBase() (string, error) {
baseBranch = "develop"
}
output, err := c.OSCommand.RunCommandWithOutput(fmt.Sprintf("git merge-base HEAD %s", baseBranch))
if err != nil {
// swallowing error because it's not a big deal; probably because there are no commits yet
}
// swallowing error because it's not a big deal; probably because there are no commits yet
output, _ := c.OSCommand.RunCommandWithOutput(fmt.Sprintf("git merge-base HEAD %s", baseBranch))
return output, nil
}