1
0
Fork 0
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:
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

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,