lint: fix unhandled errors
This commit is contained in:
parent
9bef739621
commit
d7cbc22da4
12 changed files with 151 additions and 56 deletions
|
|
@ -74,7 +74,10 @@ func statusResponseError(writer http.ResponseWriter, code int, errors ...string)
|
|||
writer.WriteHeader(code)
|
||||
|
||||
for _, err := range errors {
|
||||
writer.Write([]byte(err))
|
||||
_, e := writer.Write([]byte(err))
|
||||
if e != nil {
|
||||
panic(e)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue