mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-10 02:34:04 +09:00
Remove unneeded if statements for update repo
API (#35140)
just try to make the update func more redable and be more KISS --- _Sponsored by Kithara Software GmbH_
This commit is contained in:
@ -53,9 +53,8 @@ func getRepoEditOptionFromRepo(repo *repo_model.Repository) *api.EditRepoOption
|
||||
hasWiki = true
|
||||
} else if unit, err := repo.GetUnit(db.DefaultContext, unit_model.TypeExternalWiki); err == nil {
|
||||
hasWiki = true
|
||||
config := unit.ExternalWikiConfig()
|
||||
externalWiki = &api.ExternalWiki{
|
||||
ExternalWikiURL: config.ExternalWikiURL,
|
||||
ExternalWikiURL: unit.ExternalWikiConfig().ExternalWikiURL,
|
||||
}
|
||||
}
|
||||
defaultBranch := repo.DefaultBranch
|
||||
|
Reference in New Issue
Block a user