Fixed redundant else
Signed-off-by: Anes Hasicic <anes.hasicic@gmail.com>
This commit is contained in:
parent
3d9cbf0e71
commit
3d7b9e8f30
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue