unrolled / render

Go package for easily rendering JSON, XML, binary data, and HTML templates responses.
MIT License
1.94k stars 146 forks source link

Remove unnecessary zero value setter #74

Closed syntaqx closed 5 years ago

syntaqx commented 5 years ago

Hey there! Thanks for this package, been using it for quite some time.

This change is fairly inconsequential, but there's no need for these lines, as the value is already at a zero value:

var o Options
if len(options) == 0 {
    o = Options{}
}

https://play.golang.org/p/vTGrHzyO5nY

unrolled commented 5 years ago

Awesome, thanks!