Reduce linter ignores

This commit is contained in:
Michael Eischer
2025-09-21 22:10:22 +02:00
parent 8518c1f7d9
commit 88bdf20bd8
6 changed files with 19 additions and 14 deletions

View File

@@ -64,10 +64,11 @@ func parseFilter(envname string, pad func(string) string) map[string]bool {
for _, fn := range strings.Split(env, ",") {
t := pad(strings.TrimSpace(fn))
val := true
if t[0] == '-' {
switch t[0] {
case '-':
val = false
t = t[1:]
} else if t[0] == '+' {
case '+':
val = true
t = t[1:]
}