Explorar o código

Merge pull request #26656 from miaoyq/rename-name-to-destination

Rename the variable 'name' to 'destination'
Vincent Demeester %!s(int64=8) %!d(string=hai) anos
pai
achega
e54171378c
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      daemon/volumes.go

+ 2 - 2
daemon/volumes.go

@@ -85,8 +85,8 @@ func (daemon *Daemon) registerMountPoints(container *container.Container, hostCo
 	}()
 
 	// 1. Read already configured mount points.
-	for name, point := range container.MountPoints {
-		mountPoints[name] = point
+	for destination, point := range container.MountPoints {
+		mountPoints[destination] = point
 	}
 
 	// 2. Read volumes from other containers.