From c4d28076c95e6a6bdd55e81ec36ce7cbca7e6c74 Mon Sep 17 00:00:00 2001 From: Evgeny Kuznetsov Date: Thu, 23 Mar 2023 20:27:14 +0300 Subject: chore: satisfy linters --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index e2f64c4..7419075 100644 --- a/main.go +++ b/main.go @@ -23,7 +23,7 @@ func (ep endpoint) ServeHTTP(w http.ResponseWriter, r *http.Request) { source, err := url.Parse(r.PostFormValue("source")) if err != nil || source.Host == "" { w.WriteHeader(http.StatusBadRequest) - w.Write([]byte(errSrcInvalid)) + _, _ = w.Write([]byte(errSrcInvalid)) return } -- cgit v1.2.3