1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Fixed redundant else

Signed-off-by: Anes Hasicic <anes.hasicic@gmail.com>
This commit is contained in:
Anes Hasicic 2015-03-25 23:44:32 +01:00
parent 3d9cbf0e71
commit 3d7b9e8f30

View file

@ -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