refactor: drop extra internal calls to VerifyAppName

These are duplicative of the checks that happen at the subcommand level.
This commit is contained in:
Jose Diaz-Gonzalez
2020-12-25 00:08:52 -05:00
parent e0570be562
commit 65d7fd9cce
7 changed files with 0 additions and 59 deletions

View File

@@ -11,11 +11,6 @@ import (
// PurgeCache deletes the contents of the build cache stored in the repository
func PurgeCache(appName string) error {
err := common.VerifyAppName(appName)
if err != nil {
return err
}
cacheDir := strings.Join([]string{common.AppRoot(appName), "cache"}, "/")
cacheHostDir := strings.Join([]string{common.AppHostRoot(appName), "cache"}, "/")
dokkuGlobalRunArgs := common.MustGetEnv("DOKKU_GLOBAL_RUN_ARGS")