delete else keyword (#945)

This commit is contained in:
田欧 2017-06-13 10:36:37 +08:00 committed by Bo-Yi Wu
parent 53799774f4
commit 4a2b55037f
1 changed files with 13 additions and 13 deletions

View File

@ -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
@ -62,7 +63,6 @@ func Default(method, contentType string) Binding {
return Form return Form
} }
} }
}
func validate(obj interface{}) error { func validate(obj interface{}) error {
if Validator == nil { if Validator == nil {