Code review comment

This commit is contained in:
Naveen Gogineni 2022-11-04 08:36:32 -04:00
parent f8a7cfe246
commit 45dc37629c

View File

@ -177,7 +177,10 @@ func runGenFlags(cCtx *cli.Context) error {
return err
}
if !cCtx.IsSet("altsrc") {
if cCtx.IsSet("altsrc") {
return nil
}
genTestTmpl, err := template.New("gen_test").Parse(TestTemplateString)
if err != nil {
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 {
return err
}
}
return nil
}