Skip to content

Commit

Permalink
up 2022-11-23
Browse files Browse the repository at this point in the history
  • Loading branch information
hktalent committed Nov 23, 2022
1 parent 3aa6366 commit 7026557
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ func (c *Context) HandlerName() string {
func (c *Context) HandlerNames() []string {
hn := make([]string, 0, len(c.handlers))
for _, val := range c.handlers {
hn = append(hn, nameOfFunction(val))
if nil != val {
hn = append(hn, nameOfFunction(val))
}
}
return hn
}
Expand Down

0 comments on commit 7026557

Please sign in to comment.