Write doesn't need error checked

This commit is contained in:
Zach Ramsay
2017-10-03 20:20:15 -04:00
committed by Ethan Buchman
parent d033470817
commit 478a10aa41
5 changed files with 8 additions and 8 deletions

View File

@ -782,5 +782,5 @@ func writeListOfEndpoints(w http.ResponseWriter, r *http.Request, funcMap map[st
buf.WriteString("</body></html>")
w.Header().Set("Content-Type", "text/html")
w.WriteHeader(200)
_, _ = w.Write(buf.Bytes()) // error ignored
w.Write(buf.Bytes()) // nolint: errcheck
}