mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Merge pull request #18327 from tmrts/refactor/method
Auto commit by PR queue bot
This commit is contained in:
commit
f0782a54e9
@ -23,12 +23,12 @@ import (
|
||||
)
|
||||
|
||||
// formatMap formats map[string]string to a string.
|
||||
func formatMap(m map[string]string) string {
|
||||
var l string
|
||||
func formatMap(m map[string]string) (fmtStr string) {
|
||||
for key, value := range m {
|
||||
l += key + "=" + fmt.Sprintf("%q", value) + "\n"
|
||||
fmtStr += fmt.Sprintf("%v=%q\n", key, value)
|
||||
}
|
||||
return l
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// ExtractFieldPathAsString extracts the field from the given object
|
||||
|
Loading…
Reference in New Issue
Block a user