summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Haller <stefan@haller-berlin.de>2024-03-01 13:32:16 +0100
committerStefan Haller <stefan@haller-berlin.de>2024-03-02 10:09:32 +0100
commite3809f3111afe644a9bba81ef7cd8a022914faea (patch)
tree013eafcc84627ce69b119953a0c94ac52305e8b3
parentfe7d1847b793d8037b5290ebbf919280d64ac4a1 (diff)
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.
-rw-r--r--pkg/gui/controllers/helpers/patch_building_helper.go3
-rw-r--r--pkg/gui/presentation/commits.go2
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