Fix linter warnings

This commit is contained in:
Daniel 2022-03-21 15:42:41 +01:00
parent a9b491cac2
commit 6ef0282dc4
3 changed files with 3 additions and 3 deletions

View file

@ -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()

View file

@ -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(),
)

View file

@ -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
}
}