Refactor helper method in api/volume/downwardapi

This commit is contained in:
Tamer Tas 2015-09-18 17:49:55 +03:00
parent 0f8cc8926f
commit 95ad0acf5e

View File

@ -33,12 +33,12 @@ import (
const basePath = "/tmp/fake" const basePath = "/tmp/fake"
func formatMap(m map[string]string) string { func formatMap(m map[string]string) (fmtstr string) {
var l string
for key, value := range m { 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 { func newTestHost(t *testing.T, client client.Interface) volume.VolumeHost {