Context.Next() - format to while style

This commit is contained in:
Dmitry Kutakov 2019-01-17 18:14:43 +03:00
parent 53263e4ba2
commit 7c5e99b78d

View File

@ -105,8 +105,9 @@ func (c *Context) Handler() HandlerFunc {
// See example in GitHub.
func (c *Context) Next() {
c.index++
for ; c.index < int8(len(c.handlers)); c.index++ {
for c.index < int8(len(c.handlers)) {
c.handlers[c.index](c)
c.index++
}
}