delete else

This commit is contained in:
thinkerou 2017-06-12 20:30:14 +08:00
parent 53799774f4
commit 040f80b507

View File

@ -48,7 +48,8 @@ var (
func Default(method, contentType string) Binding {
if method == "GET" {
return Form
} else {
}
switch contentType {
case MIMEJSON:
return JSON
@ -61,7 +62,6 @@ func Default(method, contentType string) Binding {
default: //case MIMEPOSTForm, MIMEMultipartPOSTForm:
return Form
}
}
}
func validate(obj interface{}) error {