Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix linting rule: Use underscore to convey unused variable #360

Merged
merged 1 commit into from
Apr 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/api/health_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func initHealthCheck(apiRouter *mux.Router, context *Context) {

// handleHealthCheck responds to GET /api/v1/health,
// returning information about the service and what commit was used to run it.
func handleHealthCheck(c *Context, w http.ResponseWriter, r *http.Request) {
func handleHealthCheck(c *Context, w http.ResponseWriter, _ *http.Request) {
buildInfo := make(map[string]string)
buildInfo["buildHash"] = buildHash
buildInfo["buildHashShort"] = buildHashShort
Expand Down
2 changes: 1 addition & 1 deletion internal/api/label.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func initLabels(apiRouter *mux.Router, context *Context) {
}

// handleGetPlugins responds to GET /api/v1/labels, returning a list of all defined labels.
func handleGetLabels(c *Context, w http.ResponseWriter, r *http.Request) {
func handleGetLabels(c *Context, w http.ResponseWriter, _ *http.Request) {
response := model.AllLabels

w.Header().Set("Content-Type", "application/json")
Expand Down