remove panic from skipThisFile

This commit is contained in:
Shreyas Goenka 2023-07-04 16:01:47 +02:00
parent 3d06fb67e8
commit 4a53e0ce5a
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 2 additions and 1 deletions

View File

@ -8,8 +8,9 @@ import (
var errSkipThisFile = errors.New("skip generating this file")
var HelperFuncs = template.FuncMap{
// Text template execution returns the error only if it's the second return
// value from a function: https://pkg.go.dev/text/template#hdr-Pipelines
"skipThisFile": func() (any, error) {
return nil, errSkipThisFile
// panic(errSkipThisFile)
},
}