init initializes the Git hook templates by loading them from embedded files. If there's an error loading the templates, the function logs a fatal error and terminates the program.
()
| 27 | // init initializes the Git hook templates by loading them from embedded files. |
| 28 | // If there's an error loading the templates, the function logs a fatal error and terminates the program. |
| 29 | func init() { //nolint:gochecknoinits // required to load embedded templates at startup |
| 30 | if err := util.LoadTemplates(files); err != nil { |
| 31 | log.Fatal(err) |
| 32 | } |
| 33 | } |
nothing calls this directly
no test coverage detected