From a17b0af8b332d922293b7297a99fe6a98d00910f Mon Sep 17 00:00:00 2001 From: Andrew Marcuse Date: Sat, 4 May 2024 10:40:52 -0400 Subject: [PATCH] TWEAK: more clear variable name --- workflows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workflows.go b/workflows.go index 192492f..908c70e 100644 --- a/workflows.go +++ b/workflows.go @@ -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 { @@ -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 {