fix: correct issue where removing by index failed due to incorrect input validation
Closes #6657
This commit is contained in:
1 parent
4bd64dfd7b
commit
9cb54950fc
3 files changed
+34
-4
No files matched your search
@@ -65,7 +65,7 @@ func CommandRemove(appName string, buildpack string, index int) (err error) {
|
||||
}
|
||||
|
||||
buildpack, err = validBuildpackURL(buildpack)
|
||||
if err != nil {
|
||||
if index == 0 && err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user