From 1192e457ff16be4359df78cc875e00aa4b964578 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Mon, 12 Oct 2020 16:26:12 -0700 Subject: [PATCH] fix linting --- cmd/generate-fixer-deprecations/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/generate-fixer-deprecations/main.go b/cmd/generate-fixer-deprecations/main.go index 8c355c9ad..ed271f83b 100644 --- a/cmd/generate-fixer-deprecations/main.go +++ b/cmd/generate-fixer-deprecations/main.go @@ -71,6 +71,9 @@ func main() { // execute template into buffer deprecated := &executeOpts{DeprecatedOpts: allDeprecatedOpts} err = deprecatedOptsTemplate.Execute(&buf, deprecated) + if err != nil { + panic(err) + } // we've written unformatted go code to the file. now we have to format it. out, err := format.Source(buf.Bytes()) if err != nil {