rename jpegQuality to defaultQuality

Also fix a few go vet errors
This commit is contained in:
Will Norris 2015-02-12 14:21:26 -08:00
parent e7b0a5b88c
commit d74dd6e985
3 changed files with 9 additions and 10 deletions

View file

@ -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})