Remove unnecessary re-assignment of workDir variable

This commit is contained in:
Tasos Maschalidis
2025-10-17 19:14:08 +03:00
parent f40bcc37aa
commit ca03ea72f5

View File

@@ -42,7 +42,6 @@ func CommandDetect(appName string, branch string) (err error) {
if err != nil {
return err
}
workDir = checkedOutDir
defer func() {
if err := os.RemoveAll(checkedOutDir); err != nil {
common.LogWarn(fmt.Sprintf("Failed to remove temporary directory %s: %v", checkedOutDir, err))
@@ -51,7 +50,7 @@ func CommandDetect(appName string, branch string) (err error) {
dockerArgs := []string{
"run", "--rm",
"-v", fmt.Sprintf("%s:/tmp/app", workDir),
"-v", fmt.Sprintf("%s:/tmp/app", checkedOutDir),
"gliderlabs/herokuish", "/bin/herokuish", "buildpack", "detect", "/tmp/app",
}