diff --git a/proxy/data.go b/proxy/data.go index 51070f3..bbc4091 100644 --- a/proxy/data.go +++ b/proxy/data.go @@ -42,6 +42,8 @@ type Options struct { FlipHorizontal bool } +var emptyOptions = new(Options) + func (o Options) String() string { buf := new(bytes.Buffer) fmt.Fprintf(buf, "%vx%v", o.Width, o.Height) diff --git a/proxy/transform.go b/proxy/transform.go index 2f080a1..a3857b4 100644 --- a/proxy/transform.go +++ b/proxy/transform.go @@ -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) {