#1: Fix GolangCI issues

This commit is contained in:
ErickSkrauch
2019-04-28 20:30:55 +03:00
parent 90ce22f687
commit 6daec4dc4b
3 changed files with 7 additions and 7 deletions

View File

@@ -16,7 +16,7 @@ func (cfg *Config) Cape(response http.ResponseWriter, request *http.Request) {
rec, err := cfg.CapesRepo.FindByUsername(username)
if err == nil {
request.Header.Set("Content-Type", "image/png")
io.Copy(response, rec.File)
_, _ = io.Copy(response, rec.File)
return
}