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

Improve project mirror code quality

parent 53801134
......@@ -30,9 +30,9 @@ module API
def authenticate_with_webhook_token!
return not_found! unless project
unless valid_github_signature?
render_invalid_github_signature!
end
return if valid_github_signature?
render_invalid_github_signature!
end
def try_authenticate_with_webhook_token!
......
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