Skip to content

Commit 3c0d891

Browse files
committed
fix(lint): make golangci happy
1 parent ab3b2b5 commit 3c0d891

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

internal/cmd/match_criteria.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ func labelsMatch(prLabels, ignoreLabels, selectLabels []string) bool {
6969
for _, l := range selectLabels {
7070
found := false
7171
if i := slices.Index(prLabels, l); i != -1 {
72-
found = true
7372
break
7473
}
7574

internal/cmd/root.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ func runCombine(cmd *cobra.Command, args []string) error {
147147

148148
Logger.Debug("starting gh-combine", "version", version.String())
149149

150-
// if the dependabot flag is set and branchPrefix is not already set, set the branch prefix to "dependabot/"
151150
if dependabot && branchPrefix == "" {
151+
branchPrefix = "dependabot/"
152152
}
153153

154154
// Input validation
@@ -181,11 +181,15 @@ func runCombine(cmd *cobra.Command, args []string) error {
181181
func executeCombineCommand(ctx context.Context, spinner *Spinner, repos []string) error {
182182
// Create GitHub API client
183183
restClient, err := api.DefaultRESTClient()
184-
graphQlClient, err := api.DefaultGraphQLClient()
185184
if err != nil {
186185
return fmt.Errorf("failed to create REST client: %w", err)
187186
}
188187

188+
graphQlClient, err := api.DefaultGraphQLClient()
189+
if err != nil {
190+
return fmt.Errorf("failed to create GraphQLClient client: %w", err)
191+
}
192+
189193
for _, repo := range repos {
190194
// Check if context was cancelled (CTRL+C pressed)
191195
select {

0 commit comments

Comments
 (0)