Satisfy linter

This commit is contained in:
HugeFrog24
2026-05-28 21:01:23 +02:00
parent d97a2c3132
commit a2cc252e8f
4 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -105,9 +105,9 @@ func parseMissingFileIDFromBody(raw string) string {
// quotes, so the id ends at the first character outside the alphanumeric +
// underscore set.
end := strings.IndexFunc(rest, func(r rune) bool {
return !(r >= 'a' && r <= 'z') &&
!(r >= 'A' && r <= 'Z') &&
!(r >= '0' && r <= '9') &&
return (r < 'a' || r > 'z') &&
(r < 'A' || r > 'Z') &&
(r < '0' || r > '9') &&
r != '_'
})
if end == -1 {