fix: satisfy staticcheck in integrations

This commit is contained in:
2026-05-24 22:46:14 +02:00
parent 5d7518afd9
commit 624a02c49d
2 changed files with 14 additions and 16 deletions

View File

@@ -548,9 +548,7 @@ func metricsEndpoint(urlStr string) string {
}
prefix := "https://api.jikan.moe/v4"
if strings.HasPrefix(trimmed, prefix) {
trimmed = strings.TrimPrefix(trimmed, prefix)
}
trimmed = strings.TrimPrefix(trimmed, prefix)
if idx := strings.Index(trimmed, "?"); idx >= 0 {
trimmed = trimmed[:idx]