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.
2 parents 3f3be65 + 9aa8f87 commit 205fcd7Copy full SHA for 205fcd7
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