mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-20 09:33:52 +00:00
Merge pull request #105135 from astraw99/fix-nil-mergeMap
Fix nil check in map merge
This commit is contained in:
@@ -475,7 +475,7 @@ func makeVolumeHandle(podUID, volSourceSpecName string) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func mergeMap(first, second map[string]string) map[string]string {
|
func mergeMap(first, second map[string]string) map[string]string {
|
||||||
if first == nil && second != nil {
|
if first == nil {
|
||||||
return second
|
return second
|
||||||
}
|
}
|
||||||
for k, v := range second {
|
for k, v := range second {
|
||||||
|
Reference in New Issue
Block a user