Skip to content

Commit

Permalink
bot: Error when no reviewers are defined
Browse files Browse the repository at this point in the history
  • Loading branch information
jimbishopp committed Feb 16, 2024
1 parent 67275c5 commit b58bb40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot/internal/review/review.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,11 @@ func (c *Config) CheckAndSetDefaults() error {
c.Rand = rand.New(rand.NewSource(time.Now().UnixNano()))
}

if c.CoreReviewers == nil {
if len(c.CoreReviewers) == 0 {
return trace.BadParameter("missing parameter CoreReviewers")
}

if c.CloudReviewers == nil {
if len(c.CloudReviewers) == 0 {
return trace.BadParameter("missing parameter CloudReviewers")
}

Expand Down

0 comments on commit b58bb40

Please sign in to comment.