Quellcode durchsuchen

Fixed redundant else

Signed-off-by: Anes Hasicic <anes.hasicic@gmail.com>
Anes Hasicic vor 10 Jahren
Ursprung
Commit
3d7b9e8f30
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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 {
 		mount.count++
 		return mount.path, nil
-	} else {
-		mount = &ActiveMount{count: 1}
 	}
 
+	mount = &ActiveMount{count: 1}
+
 	dir := d.dir(id)
 	if _, err := os.Stat(dir); err != nil {
 		return "", err