diff --git a/.golangci.yml b/.golangci.yml index 60fc158a..f367136c 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -40,6 +40,7 @@ linters: - govet - ineffassign - lll + - makezero - misspell - nakedret - nestif diff --git a/cron/worker/main.go b/cron/worker/main.go index 2bf0ee20..2a60407a 100644 --- a/cron/worker/main.go +++ b/cron/worker/main.go @@ -39,7 +39,7 @@ import ( func processRequest(ctx context.Context, batchRequest *data.ScorecardBatchRequest, bucketURL string, httpClient *http.Client, githubClient *github.Client, graphClient *githubv4.Client) error { - repoURLs := make([]repos.RepoURL, len(batchRequest.GetRepos())) + repoURLs := make([]repos.RepoURL, 0, len(batchRequest.GetRepos())) var resultCh chan repos.RepoResult var buffer bytes.Buffer