mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-15 02:15:54 -07:00
refactor(types): do proper image typ casting
This commit is contained in:
parent
62d764433d
commit
5e79759297
4 changed files with 133 additions and 18 deletions
|
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue