mirror of
https://github.com/HugeFrog24/go-telegram-bot.git
synced 2026-06-29 22:07:12 +00:00
Satisfy linter
This commit is contained in:
+3
-3
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user