-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
repo-updater: Small cleanup #17302
repo-updater: Small cleanup #17302
Conversation
Fix a typo and reduce nesting.
Codecov Report
@@ Coverage Diff @@
## main #17302 +/- ##
==========================================
- Coverage 52.14% 52.14% -0.01%
==========================================
Files 1712 1712
Lines 85441 85442 +1
Branches 7596 7596
==========================================
- Hits 44554 44552 -2
- Misses 36972 36975 +3
Partials 3915 3915
*This pull request uses carry forward flags. Click here to find out more.
|
@@ -472,36 +472,39 @@ func (s *Server) repoLookup(ctx context.Context, args protocol.RepoLookupArgs) ( | |||
return s.remoteRepoSync(ctx, codehost, string(args.Repo)) | |||
} | |||
|
|||
// We don't sync private repos on demand | |||
if repo.Private { | |||
return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This changes the behaviour though, doesn't it? Before we were not syncing the repo, but we'd return a valid result in https://github.com/sourcegraph/sourcegraph/pull/17302/files#diff-736069860c34f463e5653fc6e82948c934a6771434326e0b79d0e11f63c20f72L513-L520
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you're right, good catch. I'll revert
This reverts commit 1630315.
Fix a typo and reduce nesting.