[openSUSE/open-build-service] 27883a: Reduce cognitive complexity of branch method