Skip to content
Snippets Groups Projects

cmd/gitserver/server: Handle warning error in handleRepoUpdate

Created by: indradhanush

In this commit we start handling a potential warning type error that might be returned from underlying functions. To do this we have to make some minor structural changes to this method:

  • We start returning early at the cost of a little bit of repeated code to JSON encode the response
  • This also has the positive side effect of reducing nesting in the code

Test plan

TODO: Add tests.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading