refactor(types): do proper image typ casting

This commit is contained in:
Tomas Aparicio 2016-09-27 21:31:44 +01:00
parent 62d764433d
commit 5e79759297
4 changed files with 133 additions and 18 deletions

View file

@ -28,7 +28,7 @@ func Resize(buf []byte, o Options) ([]byte, error) {
// Clone and define default options
o = applyDefaults(o, imageType)
if IsTypeSupported(o.Type) == false {
if !IsTypeSupported(o.Type) {
return nil, errors.New("Unsupported image output type")
}