summaryrefslogtreecommitdiff
path: root/pkg/util/camelcase/camelcase.go
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2020-01-25 09:47:41 +0100
committerValentin Rothberg <rothberg@redhat.com>2020-01-25 09:48:37 +0100
commite3ad92f85d36d3e6ca005b0367bc6657071d6a8a (patch)
treee82755d54abd5c77f7968f5ed77b8d4aec97430b /pkg/util/camelcase/camelcase.go
parentac8e6c99103e7ccd3b5fee205bcafdf020ed204b (diff)
downloadpodman-e3ad92f85d36d3e6ca005b0367bc6657071d6a8a.tar.gz
podman-e3ad92f85d36d3e6ca005b0367bc6657071d6a8a.tar.bz2
podman-e3ad92f85d36d3e6ca005b0367bc6657071d6a8a.zip
camelcase: fix lint reports
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'pkg/util/camelcase/camelcase.go')
-rw-r--r--pkg/util/camelcase/camelcase.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/util/camelcase/camelcase.go b/pkg/util/camelcase/camelcase.go
index 02160c9a4..0a82d1005 100644
--- a/pkg/util/camelcase/camelcase.go
+++ b/pkg/util/camelcase/camelcase.go
@@ -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
}