Skip to content

Commit

Permalink
fix: scaffold when no boilerplate file
Browse files Browse the repository at this point in the history
  • Loading branch information
yyy1000 committed May 1, 2023
1 parent 7aa151a commit 8d67388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/plugins/golang/v4/scaffolds/api.go
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (s *apiScaffolder) Scaffold() error {
// Load the boilerplate
boilerplate, err := afero.ReadFile(s.fs.FS, hack.DefaultBoilerplatePath)
if err != nil {
return fmt.Errorf("error scaffolding API/controller: unable to load boilerplate: %w", err)
boilerplate = []byte("")
}

// Initialize the machinery.Scaffold that will write the files to disk
Expand Down

0 comments on commit 8d67388

Please sign in to comment.