diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2024-03-02 10:11:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-02 10:11:44 +0100 |
commit | afb9980ad9ea2885b8d988bbad643b58dc69e6fe (patch) | |
tree | 013eafcc84627ce69b119953a0c94ac52305e8b3 | |
parent | fe7d1847b793d8037b5290ebbf919280d64ac4a1 (diff) | |
parent | e3809f3111afe644a9bba81ef7cd8a022914faea (diff) |
Fix linter warnings (#3351)
These started to pop up in my editor after I installed an update of
gopls, I think.
-rw-r--r-- | pkg/gui/controllers/helpers/patch_building_helper.go | 3 | ||||
-rw-r--r-- | pkg/gui/presentation/commits.go | 2 |
2 files changed, 1 insertions, 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 |