mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
refactor: drop extra internal calls to VerifyAppName
These are duplicative of the checks that happen at the subcommand level.
This commit is contained in:
@@ -22,10 +22,6 @@ func ContainerIsRunning(containerID string) bool {
|
||||
|
||||
// CopyFromImage copies a file from named image to destination
|
||||
func CopyFromImage(appName string, image string, source string, destination string) error {
|
||||
if err := VerifyAppName(appName); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if !VerifyImage(image) {
|
||||
return fmt.Errorf("Invalid docker image for copying content")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user