Remove some interfaces (#3220)

This commit is contained in:
qwerty287
2024-01-19 16:20:35 +01:00
committed by GitHub
parent d1d2e9723d
commit b82790d54c
4 changed files with 15 additions and 26 deletions

View File

@@ -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()