Wiki: refactor to reduce nested #capture_git_error calls
Related to: !156411 (comment 1956434870)
As far as I could see in the code base, I still think that we can make the
#capture_git_errorprivate, as it being used outside of theWikiPageseems like a leak of internals IMHO. This should be quite straightforward because:
- Currently,
WikiPages::CreateServicecallspage.createfrom within acapture_git_error, but thepage.createalready uses thecapture_git_errorinternally, so I don't see a reason why we're using it twice.- Same thing happens on
WikiPages::UpdateService, it's callingpage.updatefrom within acapture_git_error, but thepage.updatealready calls thecapture_git_errorinternally, therefore I think we can remove the external call as well.