delete else

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

View File

@ -48,19 +48,19 @@ 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 {
case MIMEJSON: switch contentType {
return JSON case MIMEJSON:
case MIMEXML, MIMEXML2: return JSON
return XML case MIMEXML, MIMEXML2:
case MIMEPROTOBUF: return XML
return ProtoBuf case MIMEPROTOBUF:
case MIMEMSGPACK, MIMEMSGPACK2: return ProtoBuf
return MsgPack case MIMEMSGPACK, MIMEMSGPACK2:
default: //case MIMEPOSTForm, MIMEMultipartPOSTForm: return MsgPack
return Form default: //case MIMEPOSTForm, MIMEMultipartPOSTForm:
} return Form
} }
} }