Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsimon committed Mar 7, 2022
1 parent 99eec23 commit a76f083
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions clients/githubrepo/graphql.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ package githubrepo

import (
"context"
"errors"
"fmt"
"strings"
"sync"
Expand All @@ -37,8 +36,6 @@ const (
commitsToAnalyze = 30
)

var errorInvalidCommitterLogin = errors.New("cannot retrieve committer login")

// nolint: govet
type graphqlData struct {
Repository struct {
Expand Down Expand Up @@ -198,6 +195,7 @@ func (handler *graphqlHandler) isArchived() (bool, error) {
return handler.archived, nil
}

//nolint
func commitsFrom(data *graphqlData, repoOwner, repoName string) ([]clients.Commit, error) {
ret := make([]clients.Commit, 0)
for _, commit := range data.Repository.Object.Commit.History.Nodes {
Expand Down

0 comments on commit a76f083

Please sign in to comment.