chore: modernize some code

This commit is contained in:
Vincent Bernat
2025-11-14 23:11:53 +01:00
parent 625387a617
commit abca5e983d
21 changed files with 42 additions and 63 deletions

View File

@@ -69,7 +69,7 @@ func TestOrchestratorConfig(t *testing.T) {
var got any
got = gotYAML
i := 0
for _, component := range strings.Split(path, ".") {
for component := range strings.SplitSeq(path, ".") {
var ok bool
i++
switch gotConcrete := got.(type) {