mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 15:51:43 +00:00
httpapi: Remove unused param (#45721)
This commit is contained in:
parent
568def690a
commit
3ba7222367
@ -81,7 +81,7 @@ func NewHandler(
|
||||
})
|
||||
|
||||
// Set handlers for the installed routes.
|
||||
m.Get(apirouter.RepoShield).Handler(trace.Route(handler(serveRepoShield(db))))
|
||||
m.Get(apirouter.RepoShield).Handler(trace.Route(handler(serveRepoShield())))
|
||||
m.Get(apirouter.RepoRefresh).Handler(trace.Route(handler(serveRepoRefresh(db))))
|
||||
|
||||
webhookMiddleware := webhooks.NewLogMiddleware(
|
||||
|
||||
@ -8,7 +8,6 @@ import (
|
||||
|
||||
"github.com/sourcegraph/sourcegraph/cmd/frontend/backend"
|
||||
"github.com/sourcegraph/sourcegraph/cmd/frontend/internal/routevar"
|
||||
"github.com/sourcegraph/sourcegraph/internal/database"
|
||||
"github.com/sourcegraph/sourcegraph/internal/httpcli"
|
||||
"github.com/sourcegraph/sourcegraph/lib/errors"
|
||||
)
|
||||
@ -36,7 +35,7 @@ func badgeValueFmt(totalRefs int) string {
|
||||
return " " + desc
|
||||
}
|
||||
|
||||
func serveRepoShield(db database.DB) func(http.ResponseWriter, *http.Request) error {
|
||||
func serveRepoShield() func(http.ResponseWriter, *http.Request) error {
|
||||
return func(w http.ResponseWriter, r *http.Request) error {
|
||||
value, err := badgeValue(r)
|
||||
if err != nil {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user