mirror of https://github.com/gin-gonic/gin.git
delete else keyword (#945)
This commit is contained in:
parent
53799774f4
commit
4a2b55037f
|
@ -48,7 +48,8 @@ var (
|
||||||
func Default(method, contentType string) Binding {
|
func Default(method, contentType string) Binding {
|
||||||
if method == "GET" {
|
if method == "GET" {
|
||||||
return Form
|
return Form
|
||||||
} else {
|
}
|
||||||
|
|
||||||
switch contentType {
|
switch contentType {
|
||||||
case MIMEJSON:
|
case MIMEJSON:
|
||||||
return JSON
|
return JSON
|
||||||
|
@ -61,7 +62,6 @@ func Default(method, contentType string) Binding {
|
||||||
default: //case MIMEPOSTForm, MIMEMultipartPOSTForm:
|
default: //case MIMEPOSTForm, MIMEMultipartPOSTForm:
|
||||||
return Form
|
return Form
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func validate(obj interface{}) error {
|
func validate(obj interface{}) error {
|
||||||
|
|
Loading…
Reference in New Issue