mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-04-29 14:56:25 +02:00
move emptyOptions to data.go
This commit is contained in:
parent
cc2bed6b8f
commit
702a07e3b5
2 changed files with 2 additions and 2 deletions
|
|
@ -26,8 +26,6 @@ import (
|
|||
"github.com/disintegration/imaging"
|
||||
)
|
||||
|
||||
var emptyOptions = new(Options)
|
||||
|
||||
// Transform the provided image.
|
||||
func Transform(img []byte, opt *Options) ([]byte, error) {
|
||||
if opt == nil || reflect.DeepEqual(opt, emptyOptions) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue