Skip to content

Commit

Permalink
reset mod
Browse files Browse the repository at this point in the history
  • Loading branch information
ddkwork committed Mar 12, 2024
1 parent 8e47990 commit 3014c01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gen/fileAction_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"path/filepath"
)

func WriteGoFile[T safeType.Type](name string, data T) (ok bool) {
func WriteGoFile[T safeType.Type](name string, data T) bool {
s := safeType.New(data)
source, err := format.Source(s.Bytes())
if !mylog.Error(err) {
Expand Down
2 changes: 1 addition & 1 deletion gen/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (g *GeneratedFile) FileAction() {
g.P(")")
g.P("")

g.P("func WriteGoFile[T safeType.Type](name string, data T) (ok bool) {")
g.P("func WriteGoFile[T safeType.Type](name string, data T) bool {")
g.P(" s := safeType.New(data)")
g.P(" source, err := format.Source(s.Bytes())")
g.P(" if !mylog.Error(err) {")
Expand Down

0 comments on commit 3014c01

Please sign in to comment.