From 6ef0282dc4801c4939f9cf4019ebaf138216a7c0 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 21 Mar 2022 15:42:41 +0100 Subject: [PATCH] Fix linter warnings --- config/main.go | 2 +- utils/debug/debug.go | 2 +- utils/osdetail/binmeta.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/main.go b/config/main.go index d348898..1882707 100644 --- a/config/main.go +++ b/config/main.go @@ -89,7 +89,7 @@ func AddToDebugInfo(di *debug.Info) { var lines []string // Collect all changed settings. - ForEachOption(func(opt *Option) error { + _ = ForEachOption(func(opt *Option) error { opt.Lock() defer opt.Unlock() diff --git a/utils/debug/debug.go b/utils/debug/debug.go index bd74e2b..7ff5dec 100644 --- a/utils/debug/debug.go +++ b/utils/debug/debug.go @@ -157,7 +157,7 @@ func (di *Info) AddLastReportedModuleError() { } di.AddSection( - fmt.Sprintf("%s Module Error", strings.Title(me.ModuleName)), + fmt.Sprintf("%s Module Error", strings.Title(me.ModuleName)), //nolint:staticcheck UseCodeSection, me.Format(), ) diff --git a/utils/osdetail/binmeta.go b/utils/osdetail/binmeta.go index 333ba82..76c0e8d 100644 --- a/utils/osdetail/binmeta.go +++ b/utils/osdetail/binmeta.go @@ -76,7 +76,7 @@ func GenerateBinaryNameFromPath(path string) string { // Title-case name-only parts. if nameOnly.MatchString(nameParts[i]) { - nameParts[i] = strings.Title(nameParts[i]) + nameParts[i] = strings.Title(nameParts[i]) //nolint:staticcheck } }