Commit ac470cd5 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Merge branch 'improve-project-mirror-api-quality' into 'master'

Improve project mirror code quality

See merge request gitlab-org/gitlab!28797
parents 07aa589b 58c90fe5
......@@ -30,10 +30,10 @@ module API
def authenticate_with_webhook_token!
return not_found! unless project
unless valid_github_signature?
return if valid_github_signature?
render_invalid_github_signature!
end
end
def try_authenticate_with_webhook_token!
if github_webhook_signature
......
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