summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Kuznetsov <evgeny@kuznetsov.md>2023-03-23 20:27:14 +0300
committerEvgeny Kuznetsov <evgeny@kuznetsov.md>2023-03-23 20:27:14 +0300
commitc4d28076c95e6a6bdd55e81ec36ce7cbca7e6c74 (patch)
treecbeed3f1d0da24311347655f5c4d1fc6ee88aa77
parent93acbe74a992c4cb83676301e084575bd4fe76e5 (diff)
downloadstatic-wm-c4d28076c95e6a6bdd55e81ec36ce7cbca7e6c74.tar.gz
static-wm-c4d28076c95e6a6bdd55e81ec36ce7cbca7e6c74.zip
chore: satisfy lintersHEADmaster
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
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
}