Skip to content

Commit e3da2eb

Browse files
authored
Fix field string validators (#465)
1 parent a9c50fc commit e3da2eb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

stackit/internal/utils/utils.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@ func SupportedValuesDocumentation(values []string) string {
8585
}
8686

8787
func quoteValues(values []string) []string {
88+
quotedValues := make([]string, len(values))
8889
for i, value := range values {
89-
values[i] = fmt.Sprintf("`%s`", value)
90+
quotedValues[i] = fmt.Sprintf("`%s`", value)
9091
}
91-
return values
92+
return quotedValues
9293
}

0 commit comments

Comments
 (0)