Explorar o código

Fixed redundant else

Signed-off-by: Anes Hasicic <anes.hasicic@gmail.com>
Anes Hasicic %!s(int64=10) %!d(string=hai) anos
pai
achega
3d7b9e8f30
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      daemon/graphdriver/overlay/overlay.go

+ 2 - 2
daemon/graphdriver/overlay/overlay.go

@@ -273,10 +273,10 @@ func (d *Driver) Get(id string, mountLabel string) (string, error) {
 	if mount != nil {
 	if mount != nil {
 		mount.count++
 		mount.count++
 		return mount.path, nil
 		return mount.path, nil
-	} else {
-		mount = &ActiveMount{count: 1}
 	}
 	}
 
 
+	mount = &ActiveMount{count: 1}
+
 	dir := d.dir(id)
 	dir := d.dir(id)
 	if _, err := os.Stat(dir); err != nil {
 	if _, err := os.Stat(dir); err != nil {
 		return "", err
 		return "", err