mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-19 18:23:37 +00:00
Remove some interfaces (#3220)
This commit is contained in:
@@ -16,14 +16,13 @@ package middleware
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/urfave/cli/v2"
|
||||
|
||||
"go.woodpecker-ci.org/woodpecker/v2/server/store"
|
||||
)
|
||||
|
||||
// Store is a middleware function that initializes the Datastore and attaches to
|
||||
// the context of every http.Request.
|
||||
func Store(_ *cli.Context, v store.Store) gin.HandlerFunc {
|
||||
func Store(v store.Store) gin.HandlerFunc {
|
||||
return func(c *gin.Context) {
|
||||
store.ToContext(c, v)
|
||||
c.Next()
|
||||
|
Reference in New Issue
Block a user