fix: linter

This commit is contained in:
2026-03-23 16:19:17 +03:00
parent 14ef3cf2c5
commit 23121a4741
9 changed files with 100 additions and 101 deletions
+3 -2
View File
@@ -1,9 +1,10 @@
package generator
import (
"github.com/edmand46/arpack/parser"
"fmt"
"strings"
"github.com/edmand46/arpack/parser"
)
func GenerateCSharp(messages []parser.Message, namespace string) ([]byte, error) {
@@ -455,7 +456,7 @@ func csharpEnumValueName(enumName, valueName string) string {
}
first := suffix[0]
if !((first >= 'A' && first <= 'Z') || (first >= '0' && first <= '9') || first == '_') {
if (first < 'A' || first > 'Z') && (first < '0' || first > '9') && first != '_' {
return valueName
}