Skip to content

Commit cb6aeef

Browse files
authored
shadow context (#4549)
1 parent bb3464e commit cb6aeef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/sources/github/github.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ func (s *Source) Enumerate(ctx context.Context, reporter sources.UnitReporter) e
461461

462462
// Final filter check - only include repositories that pass the filter
463463
if s.filteredRepoCache.wantRepo(repoName) {
464-
ctx = context.WithValue(ctx, "repo", repo)
464+
ctx := context.WithValue(ctx, "repo", repo)
465465

466466
repo, err := s.ensureRepoInfoCache(ctx, repo, &unitErrorReporter{reporter})
467467
if err != nil {

0 commit comments

Comments
 (0)