Commit 58c90fe5 authored by Giorgenes Gelatti's avatar Giorgenes Gelatti

Improve project mirror code quality

parent 53801134
......@@ -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