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:
parent
4c9ab6d385
commit
dc25a59d9c
1 changed files with 1 additions and 1 deletions
|
@ -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, "")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue