Skip to content

Commit

Permalink
Update modules/repository/create.go
Browse files Browse the repository at this point in the history
Co-authored-by: Yarden Shoham <hrsi88@gmail.com>
  • Loading branch information
yp05327 and yardenshoham authored Feb 18, 2023
1 parent 532ad16 commit 2838ddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/repository/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ func UpdateRepository(ctx context.Context, repo *repo_model.Repository, visibili

if visibilityChanged {
if err = repo.LoadOwner(ctx); err != nil {
return fmt.Errorf("getOwner: %w", err)
return fmt.Errorf("LoadOwner: %w", err)
}
if repo.Owner.IsOrganization() {
// Organization repository need to recalculate access table when visibility is changed.
Expand Down

0 comments on commit 2838ddf

Please sign in to comment.