mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-05 13:11:30 +00:00
Merge pull request #11772 from aneshas/11718-redundant-else
Fixed redundant else
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user