File tree 3 files changed +6
-3
lines changed
serverless/serverlessbuild
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ func Run() error {
19
19
20
20
files = filterFiles (files )
21
21
22
+ return FormatFiles (files )
23
+ }
24
+
25
+ func FormatFiles (files []string ) error {
22
26
gf := gofmtapi .NewFormatter ()
23
27
opt := gofmtapi .NewOptions ()
24
28
opt .BindFlags ()
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ func (ja *JzeroApi) patchHandler(file HandlerFile) error {
101
101
}
102
102
103
103
buf := bytes .NewBuffer (nil )
104
- if err : = goformat .Node (buf , fset , f ); err != nil {
104
+ if err = goformat .Node (buf , fset , f ); err != nil {
105
105
return err
106
106
}
107
107
Original file line number Diff line number Diff line change 6
6
"path/filepath"
7
7
"strings"
8
8
9
- "github.com/jzero-io/jzero-contrib/modx"
10
9
"github.com/jzero-io/jzero-contrib/templatex"
11
10
"github.com/pkg/errors"
12
11
"github.com/rinchsan/gosimports"
@@ -69,7 +68,7 @@ func Run() error {
69
68
return err
70
69
}
71
70
for i := 0 ; i < len (plugins ); i ++ {
72
- pluginGoMod , err := modx .GetGoMod (filepath .Join (wd , plugins [i ].Path ))
71
+ pluginGoMod , err := mod .GetGoMod (filepath .Join (wd , plugins [i ].Path ))
73
72
if err != nil {
74
73
return err
75
74
}
You can’t perform that action at this time.
0 commit comments