Skip to content

Commit

Permalink
remove \n
Browse files Browse the repository at this point in the history
  • Loading branch information
adnanh committed Sep 29, 2016
1 parent c53596d commit 75cf895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func hookHandler(w http.ResponseWriter, r *http.Request) {
if err != nil {
w.Header().Set("Content-Type", "text/plain; charset=utf-8")
w.WriteHeader(http.StatusInternalServerError)
fmt.Fprintf(w, "Error occurred while executing the hook's command. Please check your logs for more details.\n")
fmt.Fprintf(w, "Error occurred while executing the hook's command. Please check your logs for more details.")

This comment has been minimized.

Copy link
@denji

denji Oct 19, 2016

Contributor
w.Write([]byte("Error occurred while executing the hook's command. Please check your logs for more details."))
} else {
fmt.Fprintf(w, response)

This comment has been minimized.

Copy link
@denji

denji Oct 19, 2016

Contributor
                                        w.Write([]byte(response))
}
Expand Down

0 comments on commit 75cf895

Please sign in to comment.