mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-04-25 04:46:24 +02:00
fix go lint warnings
- handle errors where possible - explicitly ignore errors where it makes sense to - fix deprecations and unused var
This commit is contained in:
parent
5600290c82
commit
fc79b851b2
7 changed files with 31 additions and 19 deletions
|
|
@ -375,7 +375,7 @@ func (t testTransport) RoundTrip(req *http.Request) (*http.Response, error) {
|
|||
case "/png":
|
||||
m := image.NewNRGBA(image.Rect(0, 0, 1, 1))
|
||||
img := new(bytes.Buffer)
|
||||
png.Encode(img, m)
|
||||
_ = png.Encode(img, m)
|
||||
|
||||
raw = fmt.Sprintf("HTTP/1.1 200 OK\nContent-Length: %d\nContent-Type: image/png\n\n%s", len(img.Bytes()), img.Bytes())
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue