Skip to content

Commit

Permalink
style(linter): resolve linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ksbomj committed Oct 13, 2023
1 parent ba6d106 commit dd6699f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func allowCORS(h http.Handler) http.Handler {
})
}

func preflightHandler(w http.ResponseWriter, r *http.Request) {
func preflightHandler(w http.ResponseWriter, _ *http.Request) {
headers := []string{"Content-Type", "Accept", "Authorization"}
w.Header().Set("Access-Control-Allow-Headers", strings.Join(headers, ","))
methods := []string{"GET", "HEAD", "POST", "PUT", "DELETE"}
Expand Down

0 comments on commit dd6699f

Please sign in to comment.