Enable errorlint linter, and fix warnings

This commit is contained in:
Stefan Haller committed 2025-06-30 18:30:11 +02:00
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)