delete else keyword (#945)
This commit is contained in:
parent
53799774f4
commit
4a2b55037f
@ -48,7 +48,8 @@ var (
|
||||
func Default(method, contentType string) Binding {
|
||||
if method == "GET" {
|
||||
return Form
|
||||
} else {
|
||||
}
|
||||
|
||||
switch contentType {
|
||||
case MIMEJSON:
|
||||
return JSON
|
||||
@ -62,7 +63,6 @@ func Default(method, contentType string) Binding {
|
||||
return Form
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func validate(obj interface{}) error {
|
||||
if Validator == nil {
|
||||
|
Loading…
Reference in New Issue
Block a user