From 73f0b01da18a53be2d86dce540d680a226d77946 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 8 Oct 2020 00:36:46 +0200 Subject: [PATCH] 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 --- volume/local/local.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/volume/local/local.go b/volume/local/local.go index 3bc757e510..4b99b05086 100644 --- a/volume/local/local.go +++ b/volume/local/local.go @@ -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,