ax(node): rename loop variable v to supported in IsProtocolVersionSupported

Single-letter v is not AX-exempt — only i (index) is allowed in range loops.
The element variable names the thing being iterated, so: supported.

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 07:31:27 +01:00
parent ed5ef7dda3
commit 7cb8487475
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -21,8 +21,8 @@ var SupportedProtocolVersions = []string{"1.0"}
// IsProtocolVersionSupported checks if a given version is supported.
func IsProtocolVersionSupported(version string) bool {
for _, v := range SupportedProtocolVersions {
if v == version {
for _, supported := range SupportedProtocolVersions {
if supported == version {
return true
}
}