camelcase: fix lint reports

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
Valentin Rothberg 2020-01-25 09:47:41 +01:00
parent ac8e6c9910
commit e3ad92f85d
1 changed files with 3 additions and 2 deletions

View File

@ -55,7 +55,7 @@ func Split(src string) (entries []string) {
class := 0
// split into fields based on class of unicode character
for _, r := range src {
switch true {
switch {
case unicode.IsLower(r):
class = 1
case unicode.IsUpper(r):
@ -86,5 +86,6 @@ func Split(src string) (entries []string) {
entries = append(entries, string(s))
}
}
return
return entries
}