Skip to content

Commit

Permalink
Fix lint: non-constant format string in call to fmt.Fprintf (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
int128 authored Nov 9, 2024
1 parent bc04db8 commit 09fcccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func (h *localServerHandler) handleCodeResponse(w http.ResponseWriter, r *http.R
http.Redirect(w, r, h.config.SuccessRedirectURL, http.StatusFound)
} else {
w.Header().Add("Content-Type", "text/html")
if _, err := fmt.Fprintf(w, h.config.LocalServerSuccessHTML); err != nil {
if _, err := fmt.Fprint(w, h.config.LocalServerSuccessHTML); err != nil {
http.Error(w, "server error", 500)
return &authorizationResponse{err: fmt.Errorf("write error: %w", err)}
}
Expand Down

0 comments on commit 09fcccc

Please sign in to comment.