kataras / kataras/iris

[BUG] MVC UseResultHandler does not handle nil

Open
#2,534 0 comments 0 reactions 1 assignee Claimed by @kataras View on GitHub
Dominant language
Go
Stars
25.6k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

```go
app.ConfigureContainer().UseResultHandler(func(next iris.ResultHandler) iris.ResultHandler {
return func(ctx iris.Context, v interface{}) error {
/* this function not being called */
fmt.Println(v)
return next(ctx, v)
}
})

func (c *CustomController) Get() any {
return nil
}
```
I want it to run even if the return value is nil.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.