From 9b5b3e2f2381abf6f00d319a028d9bde2c525f5c Mon Sep 17 00:00:00 2001 From: jwangatabsolute <87449919+jwangatabsolute@users.noreply.github.com> Date: Wed, 14 Jul 2021 17:48:47 -0700 Subject: [PATCH] format --- cmd/nfs-subdir-external-provisioner/provisioner.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cmd/nfs-subdir-external-provisioner/provisioner.go b/cmd/nfs-subdir-external-provisioner/provisioner.go index 902d333b..6358d1de 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,9 +114,8 @@ func (p *nfsProvisioner) Provision(ctx context.Context, options controller.Provi } if !withPathSuffixBool { path = p.path - fullPath = mountPath - } - else if exists { + fullPath = mountPath + } else if exists { customPath := metadata.stringParser(pathPattern) if customPath != "" { path = filepath.Join(p.path, customPath)