Descriptionwebtry: Simplify template construction.
text/template and html/template both have a helper function called
"Must" that according to the docs in http://golang.org/pkg/text/template/#Must
and http://golang.org/pkg/html/template/#Must, wraps a call to a function
returning (*Template, error) and panics if the error is non-nil.
So we don't need to that ourselves. Which is a good thing and makes code
cleaner.
BUG=None
TEST=None
R=jcgregorio@google.com
Committed: https://skia.googlesource.com/skia/+/585a5fc243e290ad9055ae1439a5e505d1ce7368
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|