mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
Make it explicit when we are intentionally not checking errors
The linter complains that we're not checking for errors, but on some cases it's on code paths were it is reasonable to do so (e.g. we're closing the connection and it's a best-effort write). This patch adjusts the code to make those cases explicit.
This commit is contained in:
@@ -156,7 +156,7 @@ func (s *Server) InitQueue(path string, localC, remoteC courier.Courier) {
|
||||
|
||||
http.HandleFunc("/debug/queue",
|
||||
func(w http.ResponseWriter, r *http.Request) {
|
||||
w.Write([]byte(q.DumpString()))
|
||||
_, _ = w.Write([]byte(q.DumpString()))
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user