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