Skip to content

Commit

Permalink
use a better fxn name.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrav committed Aug 17, 2023
1 parent 8051c84 commit 477951d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/sources/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -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/<owner>/<repo>).
if len(trimmedURL) < 3 {
return fmt.Errorf("url missing owner and/or repo: '%s'", repoURL.String())
Expand Down

0 comments on commit 477951d

Please sign in to comment.