fix: correct issue where removing by index failed due to incorrect input validation

Closes #6657
This commit is contained in:
Jose Diaz-Gonzalez committed 2024-03-13 06:53:05 -04:00
1 parent 4bd64dfd7b
commit 9cb54950fc
3 files changed
+34 -4

No files matched your search

+1 -1
View File
@@ -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
}