Code review comment
This commit is contained in:
parent
f8a7cfe246
commit
45dc37629c
@ -177,7 +177,10 @@ func runGenFlags(cCtx *cli.Context) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if !cCtx.IsSet("altsrc") {
|
if cCtx.IsSet("altsrc") {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
genTestTmpl, err := template.New("gen_test").Parse(TestTemplateString)
|
genTestTmpl, err := template.New("gen_test").Parse(TestTemplateString)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
@ -195,7 +198,7 @@ func runGenFlags(cCtx *cli.Context) error {
|
|||||||
if _, err := sh(cCtx.Context, cCtx.Path("goimports"), "-w", cCtx.Path("generated-test-output")); err != nil {
|
if _, err := sh(cCtx.Context, cCtx.Path("goimports"), "-w", cCtx.Path("generated-test-output")); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user