Code review comment
This commit is contained in:
parent
f8a7cfe246
commit
45dc37629c
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user