Skip to content

Commit

Permalink
provider/heroku: scope valid stage names to func
Browse files Browse the repository at this point in the history
  • Loading branch information
justincampbell committed May 1, 2017
1 parent f99b0cb commit 695d014
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import (
"github.com/satori/uuid"
)

var validPipelineStageNames = []string{
"review",
"development",
"staging",
"production",
}

func validatePipelineStageName(v interface{}, k string) (ws []string, errors []error) {
validPipelineStageNames := []string{
"review",
"development",
"staging",
"production",
}

for _, s := range validPipelineStageNames {
if v == s {
return
Expand Down

0 comments on commit 695d014

Please sign in to comment.