chore: fix golangci-lint errors

This commit is contained in:
Oleg Lobanov
2024-04-01 18:24:06 +02:00
parent d194d71293
commit ae0af1f996
54 changed files with 452 additions and 475 deletions

View File

@@ -3,7 +3,6 @@ package img
import (
"bytes"
"context"
"errors"
"image"
"image/gif"
"image/jpeg"
@@ -437,7 +436,7 @@ func TestService_FormatFromExtension(t *testing.T) {
t.Run(name, func(t *testing.T) {
svc := New(1)
got, err := svc.FormatFromExtension(test.ext)
require.Truef(t, errors.Is(err, test.wantErr), "error = %v, wantErr %v", err, test.wantErr)
require.ErrorIsf(t, err, test.wantErr, "error = %v, wantErr %v", err, test.wantErr)
if err != nil {
return
}