forked from forgejo/forgejo
Golint fixed for modules/context
This commit is contained in:
parent
6a28909f40
commit
faabc76fd6
7 changed files with 20 additions and 3 deletions
|
@ -16,6 +16,7 @@ import (
|
|||
macaron "gopkg.in/macaron.v1"
|
||||
)
|
||||
|
||||
// APIContext is a specific macaron context for API service
|
||||
type APIContext struct {
|
||||
*Context
|
||||
Org *APIOrganization
|
||||
|
@ -63,6 +64,7 @@ func (ctx *APIContext) SetLinkHeader(total, pageSize int) {
|
|||
}
|
||||
}
|
||||
|
||||
// APIContexter returns apicontext as macaron middleware
|
||||
func APIContexter() macaron.Handler {
|
||||
return func(c *Context) {
|
||||
ctx := &APIContext{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue