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:
parent
ed5ef7dda3
commit
7cb8487475
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue