mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 03:03:59 +00:00
Refactor helper method in api/volume/downwardapi
This commit is contained in:
parent
0f8cc8926f
commit
95ad0acf5e
@ -33,12 +33,12 @@ import (
|
||||
|
||||
const basePath = "/tmp/fake"
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
func newTestHost(t *testing.T, client client.Interface) volume.VolumeHost {
|
||||
|
Loading…
Reference in New Issue
Block a user