mirror of
https://github.com/go-gitea/gitea.git
synced 2024-06-29 01:45:30 +00:00
fix lint
This commit is contained in:
parent
8cca437db0
commit
0586ab691c
|
@ -122,7 +122,7 @@ func UpdateRepository(ctx context.Context, repo *repo_model.Repository, visibili
|
|||
return committer.Commit()
|
||||
}
|
||||
|
||||
func UpdateRepositoryVisibility(ctx context.Context, repo *repo_model.Repository, IsPrivate bool) (err error) {
|
||||
func UpdateRepositoryVisibility(ctx context.Context, repo *repo_model.Repository, isPrivate bool) (err error) {
|
||||
ctx, committer, err := db.TxContext(ctx)
|
||||
if err != nil {
|
||||
return err
|
||||
|
@ -130,7 +130,7 @@ func UpdateRepositoryVisibility(ctx context.Context, repo *repo_model.Repository
|
|||
|
||||
defer committer.Close()
|
||||
|
||||
repo.IsPrivate = IsPrivate
|
||||
repo.IsPrivate = isPrivate
|
||||
|
||||
if err = repo_module.UpdateRepository(ctx, repo, true); err != nil {
|
||||
return fmt.Errorf("UpdateRepositoryVisibility: %w", err)
|
||||
|
|
Loading…
Reference in New Issue
Block a user