Skip to content

Commit

Permalink
TWEAK: more clear variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
fileformat committed May 4, 2024
1 parent 12329c9 commit a17b0af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workflows.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func GetWorkflowsForRepo(client *github.Client, repo *github.Repository) ([]*git

opt := &github.ListOptions{PerPage: 50}
ctx := context.Background()
inactive := viper.GetBool("inactive")
includeInactive := viper.GetBool("inactive")

var allWorkflows []*github.Workflow
for {
Expand All @@ -22,7 +22,7 @@ func GetWorkflowsForRepo(client *github.Client, repo *github.Repository) ([]*git
return nil, err
}
for _, workflow := range workflows.Workflows {
if !inactive && *workflow.State != "active" {
if !includeInactive && *workflow.State != "active" {
continue
}
if len(IncludeSet) > 0 {
Expand Down

0 comments on commit a17b0af

Please sign in to comment.