summaryrefslogtreecommitdiff
path: root/pkg/util
diff options
context:
space:
mode:
authorValentin Rothberg <vrothberg@redhat.com>2022-03-21 13:44:09 +0100
committerValentin Rothberg <vrothberg@redhat.com>2022-03-22 13:04:34 +0100
commitbb6b69b4abe86601a8438a6708263174879b5c51 (patch)
tree35a34e879c7129ceaac8bac80bdbe7fa9faea631 /pkg/util
parent070e401499c12d4bdc6e39eaa2498aeda9e96c82 (diff)
downloadpodman-bb6b69b4abe86601a8438a6708263174879b5c51.tar.gz
podman-bb6b69b4abe86601a8438a6708263174879b5c51.tar.bz2
podman-bb6b69b4abe86601a8438a6708263174879b5c51.zip
linter: enable wastedassign
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
Diffstat (limited to 'pkg/util')
-rw-r--r--pkg/util/camelcase/camelcase.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/util/camelcase/camelcase.go b/pkg/util/camelcase/camelcase.go
index d27ac00d6..eaf7c0178 100644
--- a/pkg/util/camelcase/camelcase.go
+++ b/pkg/util/camelcase/camelcase.go
@@ -51,10 +51,10 @@ func Split(src string) (entries []string) {
}
entries = []string{}
var runes [][]rune
- lastClass := 0
- class := 0
+ var lastClass int
// split into fields based on class of unicode character
for _, r := range src {
+ var class int
switch {
case unicode.IsLower(r):
class = 1