delete else keyword (#945)
This commit is contained in:
		@ -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
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user