mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #105135 from astraw99/fix-nil-mergeMap
Fix nil check in map merge
This commit is contained in:
commit
7b9f4f18fe
@ -475,7 +475,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 {
|
||||
|
Loading…
Reference in New Issue
Block a user