Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #151: Destroy command is always run #163

Merged
merged 3 commits into from Oct 19, 2015
Merged

Fix #151: Destroy command is always run #163

merged 3 commits into from Oct 19, 2015

Conversation

Zyko0
Copy link
Contributor

@Zyko0 Zyko0 commented Oct 19, 2015

scalingo destroy was always run, whatever appname you gave.
I thought it would be better to check if the app is existing or not first.

So two requests instead of one, but the user has to type its app name again to confirm.
If he has to confirm an app that doesn't exists, it's even more bad than a 100ms request.

@@ -10,13 +10,19 @@ import (

func Destroy(appName string) error {
var validationName string

res, err := scalingo.AppsShow(appName)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

res is not used, please use _

Soulou added a commit that referenced this pull request Oct 19, 2015
Fix #151: Destroy command is always run
@Soulou Soulou merged commit 16a6856 into Scalingo:master Oct 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants