mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-05-03 00:32:40 +02:00
rename jpegQuality to defaultQuality
Also fix a few go vet errors
This commit is contained in:
parent
e7b0a5b88c
commit
d74dd6e985
3 changed files with 9 additions and 10 deletions
|
|
@ -60,10 +60,10 @@ func TestTransform(t *testing.T) {
|
|||
|
||||
out, err := Transform(in, emptyOptions)
|
||||
if err != nil {
|
||||
t.Errorf("Transform with encoder %s returned unexpected error: %v", err)
|
||||
t.Errorf("Transform with encoder %s returned unexpected error: %v", tt.name, err)
|
||||
}
|
||||
if !reflect.DeepEqual(in, out) {
|
||||
t.Errorf("Transform with with encoder %s with empty options returned modified result")
|
||||
t.Errorf("Transform with with encoder %s with empty options returned modified result", tt.name)
|
||||
}
|
||||
|
||||
out, err = Transform(in, Options{Width: -1, Height: -1})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue