From 477951db5bf0df1bbbe884f49d8a02881fb70fb2 Mon Sep 17 00:00:00 2001 From: Ahrav Dutta Date: Thu, 17 Aug 2023 14:50:30 -0700 Subject: [PATCH] use a better fxn name. --- pkg/sources/github/github.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/sources/github/github.go b/pkg/sources/github/github.go index 463ac4408f10..7a4715d87568 100644 --- a/pkg/sources/github/github.go +++ b/pkg/sources/github/github.go @@ -1023,10 +1023,10 @@ func (s *Source) scanComments(ctx context.Context, repoPath string, chunksChan c } } } - return s.handleComments(ctx, repoPath, trimmedURL, repoURL, chunksChan) + return s.processRepoComments(ctx, repoPath, trimmedURL, repoURL, chunksChan) } -func (s *Source) handleComments(ctx context.Context, repoPath string, trimmedURL []string, repoURL *url.URL, chunksChan chan *sources.Chunk) error { +func (s *Source) processRepoComments(ctx context.Context, repoPath string, trimmedURL []string, repoURL *url.URL, chunksChan chan *sources.Chunk) error { // Normal repository URL (https://github.com//). if len(trimmedURL) < 3 { return fmt.Errorf("url missing owner and/or repo: '%s'", repoURL.String())