Skip to content

Commit

Permalink
Unused parameter should be replaced by underscore
Browse files Browse the repository at this point in the history
  • Loading branch information
deepsource-autofix[bot] authored Apr 4, 2022
1 parent e1f1449 commit 9875208
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sd.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

// RegisterSubscriberFactories registers all the available sd adaptors
func RegisterSubscriberFactories(ctx context.Context, cfg config.ServiceConfig, logger logging.Logger) func(n string, p int) {
func RegisterSubscriberFactories(_ context.Context, _ config.ServiceConfig, _ logging.Logger) func(n string, p int) {
// register the dns service discovery
dnssrv.Register()

Expand Down
2 changes: 1 addition & 1 deletion tests/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ func redirectEndpoint(rw http.ResponseWriter, r *http.Request) {
http.Redirect(rw, r, u.String(), code)
}

func symmetricJWKEndpoint(rw http.ResponseWriter, req *http.Request) {
func symmetricJWKEndpoint(rw http.ResponseWriter, _ *http.Request) {
rw.Header().Add("Content-Type", "application/json")
rw.Write([]byte(`{
"keys": [
Expand Down

0 comments on commit 9875208

Please sign in to comment.