diff --git a/README.md b/README.md index 7789f6dd..326f085f 100644 --- a/README.md +++ b/README.md @@ -109,7 +109,7 @@ You may also want to change the PROVISIONER_NAME above from ``fuseim.pri/ifs`` t **Step 5: Deploying your storage class** -***Paraments:*** +***paraments:*** | Name | Description | Default | |------|-------------|:--------:| diff --git a/cmd/nfs-subdir-external-provisioner/provisioner.go b/cmd/nfs-subdir-external-provisioner/provisioner.go index d199293c..d220f07f 100644 --- a/cmd/nfs-subdir-external-provisioner/provisioner.go +++ b/cmd/nfs-subdir-external-provisioner/provisioner.go @@ -168,14 +168,12 @@ func (p *nfsProvisioner) Delete(volume *v1.PersistentVolume) error { // Otherwise, archive it. archiveOnDelete, exists := storageClass.Parameters["archiveOnDelete"] if exists { - if exists { - archiveBool, err := strconv.ParseBool(archiveOnDelete) - if err != nil { - return err - } - if !archiveBool { - return os.RemoveAll(oldPath) - } + archiveBool, err := strconv.ParseBool(archiveOnDelete) + if err != nil { + return err + } + if !archiveBool { + return os.RemoveAll(oldPath) } }