diff options
Diffstat (limited to 'resources/images/filters.go')
-rw-r--r-- | resources/images/filters.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/resources/images/filters.go b/resources/images/filters.go index c933e733b..63caefdd1 100644 --- a/resources/images/filters.go +++ b/resources/images/filters.go @@ -46,9 +46,9 @@ func (*Filters) Text(text string, options ...interface{}) gift.Filter { linespacing: 2, } - var opt map[string]interface{} + var opt maps.Params if len(options) > 0 { - opt := maps.MustToParamsAndPrepare(options[0]) + opt = maps.MustToParamsAndPrepare(options[0]) for option, v := range opt { switch option { case "color": @@ -62,7 +62,6 @@ func (*Filters) Text(text string, options ...interface{}) gift.Filter { case "linespacing": tf.linespacing = cast.ToInt(v) } - } } |