Skip to content

Commit

Permalink
chore(ci): Fix unused-parameter linter error (#15929)
Browse files Browse the repository at this point in the history
Fixes a failing golangci-lint CI step.

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
  • Loading branch information
chaudum authored Jan 24, 2025
1 parent 668bf7e commit 3df08bd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/logql-analyzer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"flag"
"net/http"

"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/gorilla/mux"
"github.com/grafana/dskit/server"
Expand All @@ -19,7 +18,7 @@ func main() {
util_log.InitLogger(&server.Config{
LogLevel: cfg.LogLevel,
}, prometheus.DefaultRegisterer, false)
s, err := createServer(cfg, util_log.Logger)
s, err := createServer(cfg)
if err != nil {
level.Error(util_log.Logger).Log("msg", "error while creating the server", "err", err)
}
Expand All @@ -38,7 +37,7 @@ func getConfig() server.Config {
return cfg
}

func createServer(cfg server.Config, logger log.Logger) (*server.Server, error) {
func createServer(cfg server.Config) (*server.Server, error) {
s, err := server.New(cfg)
if err != nil {
return nil, err
Expand Down

0 comments on commit 3df08bd

Please sign in to comment.