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 switch statements bug #44

Merged
merged 1 commit into from
May 26, 2017
Merged

Fix switch statements bug #44

merged 1 commit into from
May 26, 2017

Conversation

mirshahriar
Copy link
Contributor

Fix: #43

@@ -40,8 +40,11 @@ func GetSupportedResource(resource string) (string, error) {
func CheckSupportedResource(kind string) error {
switch kind {
case tapi.ResourceKindElastic:
fallthrough
Copy link
Member

Choose a reason for hiding this comment

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

Why not use ,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As they are different kind, I didn't group them together in same case

@tamalsaha tamalsaha merged commit 0a43665 into master May 26, 2017
@tamalsaha tamalsaha deleted the fix-43 branch May 26, 2017 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants