mirror of
https://github.com/safing/portbase
synced 2025-09-01 10:09:50 +00:00
Fix linter warnings
This commit is contained in:
parent
a9b491cac2
commit
6ef0282dc4
3 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||
|
||||
|
|
|
@ -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(),
|
||||
)
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue