Skip to content

Commit

Permalink
chore(internal/gapicgen): exit 0 when regen is in progress (#5838)
Browse files Browse the repository at this point in the history
If this methods returns an error a log.Fatal will be called which
is inappropriate for this case.
  • Loading branch information
codyoss committed Apr 5, 2022
1 parent 23ea358 commit 6b14a3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/gapicgen/cmd/genbot/bot.go
Expand Up @@ -20,7 +20,6 @@ package main
import (
"context"
"flag"
"fmt"
"log"
"time"

Expand Down Expand Up @@ -58,7 +57,8 @@ func genBot(ctx context.Context, c botConfig) error {
if pr, err := githubClient.GetRegenPR(ctx, "go-genproto", "open"); err != nil {
return err
} else if pr != nil {
return fmt.Errorf("there is already a re-generation in progress")
log.Println("there is already a re-generation in progress")
return nil
}
if pr, err := githubClient.GetRegenPR(ctx, "google-cloud-go", "open"); err != nil {
return err
Expand Down

0 comments on commit 6b14a3b

Please sign in to comment.