Skip to content

Commit

Permalink
Fix index out of range
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Feb 15, 2024
1 parent ed3cac9 commit 5a5254d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/core/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func (c *Configuration) Validate() {
if !ghwCfg.CI.Enabled {
logg.Fatal("githubWorkflow.ci.enabled must be set to 'true' when githubWorkflow.ci.postgres is enabled")
}
if len(ghwCfg.CI.RunnerType) > 1 || !strings.HasPrefix(ghwCfg.CI.RunnerType[0], "ubuntu") {
if len(ghwCfg.CI.RunnerType) > 1 && !strings.HasPrefix(ghwCfg.CI.RunnerType[0], "ubuntu") {
logg.Fatal("githubWorkflow.ci.runOn must only define a single Ubuntu based runner when githubWorkflow.ci.postgres is enabled")
}
}
Expand Down

0 comments on commit 5a5254d

Please sign in to comment.