Check errors and enable errcheck in lint config (#2242)

This commit is contained in:
Carlo Teubner authored and GitHub committed 2025-11-10 10:17:18 +01:00
1 parent b6535060a6
commit 8da478bb86
11 files changed
+120 -48

No files matched your search

+6 -2
View File
@@ -646,14 +646,18 @@ func (nav *nav) addJumpList() {
func (nav *nav) cdJumpListPrev() {
if nav.jumpListInd > 0 {
nav.jumpListInd--
nav.cd(nav.jumpList[nav.jumpListInd])
if err := nav.cd(nav.jumpList[nav.jumpListInd]); err != nil {
log.Print(err)
}
}
}
func (nav *nav) cdJumpListNext() {
if nav.jumpListInd < len(nav.jumpList)-1 {
nav.jumpListInd++
nav.cd(nav.jumpList[nav.jumpListInd])
if err := nav.cd(nav.jumpList[nav.jumpListInd]); err != nil {
log.Print(err)
}
}
}