mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
volume/local.New(): remove redundant filepath.Base()
FileInfo.Name() returns the base name, so no need to remove path information. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
a4bfd9788f
commit
73f0b01da1
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ func New(scope string, rootIdentity idtools.Identity) (*Root, error) {
|
|||
continue
|
||||
}
|
||||
|
||||
name := filepath.Base(d.Name())
|
||||
name := d.Name()
|
||||
v := &localVolume{
|
||||
driverName: r.Name(),
|
||||
name: name,
|
||||
|
|
Loading…
Reference in a new issue