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:
Sebastiaan van Stijn 2020-10-08 00:36:46 +02:00
parent a4bfd9788f
commit 73f0b01da1
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 1 additions and 1 deletions

View File

@ -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,