Commit 217e121b authored by Michal Čihař's avatar Michal Čihař

Remove unused code

We define supported services in urls.py, there is no need for additional
verification here.
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 43e88de5
......@@ -179,9 +179,6 @@ def vcs_service_hook(request, service):
return HttpResponseBadRequest('Could not parse JSON payload!')
# Get service helper
if service not in HOOK_HANDLERS:
LOGGER.error('service %s is not supported', service)
return HttpResponseBadRequest('invalid service')
hook_helper = HOOK_HANDLERS[service]
# Send the request data to the service handler.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment