Merge branch 'master' of https://github.com/zjj/gin into zjj-master

This commit is contained in:
Bo-Yi Wu 2024-11-07 08:51:37 +08:00
commit 7e8e21b21c
No known key found for this signature in database

View File

@ -186,10 +186,9 @@ func (c *Context) FullPath() string {
func (c *Context) Next() { func (c *Context) Next() {
c.index++ c.index++
for c.index < int8(len(c.handlers)) { for c.index < int8(len(c.handlers)) {
if c.handlers[c.index] == nil { if c.handlers[c.index] != nil {
continue c.handlers[c.index](c)
} }
c.handlers[c.index](c)
c.index++ c.index++
} }
} }