mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-11-06 06:06:39 -06:00
Enable errorlint linter, and fix warnings
This commit is contained in:
1 parent
0471dbaa84
commit
7aa426fa71
6 files changed
+17
-17
No files matched your search
@@ -153,7 +153,7 @@ func (self *CommitMessageController) handleCommitIndexChange(value int) error {
|
||||
func (self *CommitMessageController) setCommitMessageAtIndex(index int) (bool, error) {
|
||||
commitMessage, err := self.c.Git().Commit.GetCommitMessageFromHistory(index)
|
||||
if err != nil {
|
||||
if err == git_commands.ErrInvalidCommitIndex {
|
||||
if errors.Is(err, git_commands.ErrInvalidCommitIndex) {
|
||||
return false, nil
|
||||
}
|
||||
return false, errors.New(self.c.Tr.CommitWithoutMessageErr)
|
||||
|
||||
Reference in new issue
Block a user