format the code

This commit is contained in:
byene0923 2021-04-19 00:08:01 +08:00
parent c349775c49
commit 0748cc5c35

View File

@ -245,7 +245,7 @@ func (c *Controller) URLMapping() {}
func (c *Controller) Bind(obj interface{}) error {
ct, exist := c.Ctx.Request.Header["Content-Type"]
if exist == false || len(ct) == 0 {
if !exist || len(ct) == 0 {
return c.BindJson(obj)
}
i, l := 0, len(ct[0])