We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6452e9f commit 9aa8f87Copy full SHA for 9aa8f87
pkg/plugins/golang/v4/scaffolds/internal/templates/hack/boilerplate.go
@@ -48,9 +48,9 @@ type Boilerplate struct {
48
}
49
50
// Validate implements file.RequiresValidation
51
-func (f Boilerplate) Validate() error {
+func (f *Boilerplate) Validate() error {
52
if f.License != "" {
53
- if _, found := knownLicenses[f.License]; !found {
+ if _, foundKnown := knownLicenses[f.License]; !foundKnown {
54
if _, found := f.Licenses[f.License]; !found {
55
return fmt.Errorf("unknown specified license %s", f.License)
56
0 commit comments