From e3809f3111afe644a9bba81ef7cd8a022914faea Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Fri, 1 Mar 2024 13:32:16 +0100 Subject: Fix linter warnings These started to pop up in my editor after I installed an update of gopls, I think. It's unfortunate that we don't see them on CI. --- pkg/gui/controllers/helpers/patch_building_helper.go | 3 --- pkg/gui/presentation/commits.go | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/gui/controllers/helpers/patch_building_helper.go b/pkg/gui/controllers/helpers/patch_building_helper.go index fd3c49718..a9fe4f6da 100644 --- a/pkg/gui/controllers/helpers/patch_building_helper.go +++ b/pkg/gui/controllers/helpers/patch_building_helper.go @@ -79,9 +79,6 @@ func (self *PatchBuildingHelper) RefreshPatchBuildingPanel(opts types.OnFocusOpt } secondaryDiff := self.c.Git().Patch.PatchBuilder.RenderPatchForFile(path, false, false) - if err != nil { - return err - } context := self.c.Contexts().CustomPatchBuilder diff --git a/pkg/gui/presentation/commits.go b/pkg/gui/presentation/commits.go index b4297f6ed..ac1006c3d 100644 --- a/pkg/gui/presentation/commits.go +++ b/pkg/gui/presentation/commits.go @@ -99,7 +99,7 @@ func GetCommitListDisplayStrings( } } } else { - getGraphLine = func(idx int) string { return "" } + getGraphLine = func(int) string { return "" } } // Determine the hashes of the local branches for which we want to show a -- cgit v1.2.3