mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-02-09 13:36:56 +02:00
If the config file has no entry for caveats, the Caveats field of the struct defaults to the empty string. When strings.Split() is called on the empty string, it returns []string{""}. This is considered truthy by the template processor, resulting in a caveats section consisting of a blank line.