From 3ddd3849d45757b7b70902270263e27d354e2a9f Mon Sep 17 00:00:00 2001 From: Jing Wang Date: Thu, 9 Sep 2021 16:49:17 -0700 Subject: [PATCH] fmt --- cmd/nfs-subdir-external-provisioner/provisioner.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/nfs-subdir-external-provisioner/provisioner.go b/cmd/nfs-subdir-external-provisioner/provisioner.go index 6358d1de..5dd0ab1a 100644 --- a/cmd/nfs-subdir-external-provisioner/provisioner.go +++ b/cmd/nfs-subdir-external-provisioner/provisioner.go @@ -106,7 +106,7 @@ func (p *nfsProvisioner) Provision(ctx context.Context, options controller.Provi // default is true withPathSuffixBool := true if existsWithPathSuffix { - var err error + var err error withPathSuffixBool, err = strconv.ParseBool(withPathSuffix) if err != nil { return nil, controller.ProvisioningFinished, fmt.Errorf("storageClass.withPathSuffix is not a boolean value") @@ -114,7 +114,7 @@ func (p *nfsProvisioner) Provision(ctx context.Context, options controller.Provi } if !withPathSuffixBool { path = p.path - fullPath = mountPath + fullPath = mountPath } else if exists { customPath := metadata.stringParser(pathPattern) if customPath != "" {