From 7c5e99b78dacc4331691fbaa2169385e4a7cf61d Mon Sep 17 00:00:00 2001 From: Dmitry Kutakov Date: Thu, 17 Jan 2019 18:14:43 +0300 Subject: [PATCH] Context.Next() - format to while style --- context.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/context.go b/context.go index 7df87e14..58bac608 100644 --- a/context.go +++ b/context.go @@ -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++ } }