Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Jing Wang committed Sep 9, 2021
1 parent f35a96d commit 3ddd384
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/nfs-subdir-external-provisioner/provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,15 @@ 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")
}
}
if !withPathSuffixBool {
path = p.path
fullPath = mountPath
fullPath = mountPath
} else if exists {
customPath := metadata.stringParser(pathPattern)
if customPath != "" {
Expand Down

0 comments on commit 3ddd384

Please sign in to comment.