Remove unneeded if statements for update repo API #35140
Merged
6543 merged 11 commits intogo-gitea:mainfrom Aug 5, 2025
Merged
Remove unneeded if statements for update repo API #351406543 merged 11 commits intogo-gitea:mainfrom
update repo API #351406543 merged 11 commits intogo-gitea:mainfrom
Conversation
delvh
approved these changes
Jul 21, 2025
update repo API
Member
Author
|
TestAPIRepoEdit fails but i dont know why jet |
Member
|
It's related. The logic is different from previous implementation. All |
Member
Author
|
of course it was related ... see fix and the check if unit exists is not needed and was already missing in some unit update codeblocks ... |
Member
Author
|
Member
Author
|
was an logic issue ... where two excluse unit tyes exist and there globalEnabled check was if-else-if chained ... |
Member
The logic changed. After |
Member
Author
|
@lunny thats not true ... its: |
lunny
approved these changes
Aug 4, 2025
zjjhot
added a commit
to zjjhot/gitea
that referenced
this pull request
Aug 5, 2025
* giteaofficial/main: Fix Actions API (go-gitea#35204) Add webhook test for push event (go-gitea#34442) Remove unneeded if statements for `update repo` API (go-gitea#35140) [skip ci] Updated translations via Crowdin Step down as maintainer (justusbunsi) (go-gitea#35212) Display pull request in merged commit view (go-gitea#35202) Step down as maintainer (pat-s) (go-gitea#35213)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
just try to make the update func more redable and be more KISS
Sponsored by Kithara Software GmbH