mirror of
https://github.com/safing/portbase
synced 2025-09-04 11:40:23 +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
|
var lines []string
|
||||||
|
|
||||||
// Collect all changed settings.
|
// Collect all changed settings.
|
||||||
ForEachOption(func(opt *Option) error {
|
_ = ForEachOption(func(opt *Option) error {
|
||||||
opt.Lock()
|
opt.Lock()
|
||||||
defer opt.Unlock()
|
defer opt.Unlock()
|
||||||
|
|
||||||
|
|
|
@ -157,7 +157,7 @@ func (di *Info) AddLastReportedModuleError() {
|
||||||
}
|
}
|
||||||
|
|
||||||
di.AddSection(
|
di.AddSection(
|
||||||
fmt.Sprintf("%s Module Error", strings.Title(me.ModuleName)),
|
fmt.Sprintf("%s Module Error", strings.Title(me.ModuleName)), //nolint:staticcheck
|
||||||
UseCodeSection,
|
UseCodeSection,
|
||||||
me.Format(),
|
me.Format(),
|
||||||
)
|
)
|
||||||
|
|
|
@ -76,7 +76,7 @@ func GenerateBinaryNameFromPath(path string) string {
|
||||||
|
|
||||||
// Title-case name-only parts.
|
// Title-case name-only parts.
|
||||||
if nameOnly.MatchString(nameParts[i]) {
|
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