1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00

nfd-worker: stop using deprecated strings.Title

Make golangci-lint happy.
This commit is contained in:
Markus Lehtonen 2022-04-13 10:34:29 +03:00 committed by k8s-infra-cherrypick-robot
parent 4c9ab6d385
commit dc25a59d9c

View file

@ -167,7 +167,7 @@ func initKlogFlags(flagset *flag.FlagSet, args *worker.Args) {
func klogConfigOptName(flagName string) string {
split := strings.Split(flagName, "_")
for i, v := range split[1:] {
split[i+1] = strings.Title(v)
split[i+1] = strings.ToUpper(v[0:1]) + v[1:]
}
return strings.Join(split, "")
}