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

Merge pull request #11772 from aneshas/11718-redundant-else

Fixed redundant else
This commit is contained in:
Jessie Frazelle 2015-03-25 16:16:16 -07:00
commit 89e7f5e661

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