fix nil merge map

This commit is contained in:
astraw99 2021-09-19 18:44:31 +08:00
parent 25c7b6a2c7
commit 9fe2c30609

View File

@ -474,7 +474,7 @@ func makeVolumeHandle(podUID, volSourceSpecName string) string {
}
func mergeMap(first, second map[string]string) map[string]string {
if first == nil && second != nil {
if first == nil {
return second
}
for k, v := range second {