chore(golangci-lint): improve and clean configuration (#2808)

This commit is contained in:
Ludovic Fernandez
2026-04-24 02:13:15 +02:00
committed by GitHub
parent be35b3af75
commit ecffcc720f
4 changed files with 5 additions and 50 deletions

View File

@@ -5,6 +5,7 @@ import (
"fmt"
"net/url"
"os"
"slices"
"sync"
"time"
@@ -285,12 +286,7 @@ func (r *Reader) isTrusted(uri string) bool {
host := parsedURL.Host
// Check against each trusted pattern (exact match including port if provided)
for _, pattern := range r.trustedHosts {
if host == pattern {
return true
}
}
return false
return slices.Contains(r.trustedHosts, host)
}
func (r *Reader) include(ctx context.Context, node Node) error {