improve code quality

* fill empty block of code
This commit is contained in:
t29kida
2021-05-21 13:13:47 +09:00
parent a4ebc2066e
commit 819ec2164c
3 changed files with 7 additions and 3 deletions

View File

@@ -250,7 +250,8 @@ func (c *Controller) Bind(obj interface{}) error {
return c.BindJson(obj)
}
i, l := 0, len(ct[0])
for ; i < l && ct[0][i] != ';'; i++ {
for i < l && ct[0][i] != ';' {
i++
}
switch ct[0][0:i] {
case "application/json":