Skip to content

Commit 78932e5

Browse files
committed
Remove unnecessary code
1 parent bbc3145 commit 78932e5

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

routers/web/repo/setting/setting.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,6 @@ func handleSettingsPostUpdate(ctx *context.Context) {
207207
repo.Website = form.Website
208208
repo.IsTemplate = form.Template
209209

210-
// Visibility of forked repository is forced sync with base repository.
211-
if repo.IsFork {
212-
repo.IsPrivate = repo.BaseRepo.IsPrivate || repo.BaseRepo.Owner.Visibility == structs.VisibleTypePrivate
213-
}
214-
215210
if err := repo_service.UpdateRepository(ctx, repo, false); err != nil {
216211
ctx.ServerError("UpdateRepository", err)
217212
return

0 commit comments

Comments
 (0)