Remove unnecessary re-assignment of workDir variable
This commit is contained in:
@@ -42,7 +42,6 @@ func CommandDetect(appName string, branch string) (err error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
workDir = checkedOutDir
|
|
||||||
defer func() {
|
defer func() {
|
||||||
if err := os.RemoveAll(checkedOutDir); err != nil {
|
if err := os.RemoveAll(checkedOutDir); err != nil {
|
||||||
common.LogWarn(fmt.Sprintf("Failed to remove temporary directory %s: %v", checkedOutDir, err))
|
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{
|
dockerArgs := []string{
|
||||||
"run", "--rm",
|
"run", "--rm",
|
||||||
"-v", fmt.Sprintf("%s:/tmp/app", workDir),
|
"-v", fmt.Sprintf("%s:/tmp/app", checkedOutDir),
|
||||||
"gliderlabs/herokuish", "/bin/herokuish", "buildpack", "detect", "/tmp/app",
|
"gliderlabs/herokuish", "/bin/herokuish", "buildpack", "detect", "/tmp/app",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user