Skip to content
Snippets Groups Projects
Commit 876299b3 authored by Thomas Schneider's avatar Thomas Schneider
Browse files

Fix rubocop issues

parent 6f316c09
No related branches found
No related tags found
No related merge requests found
Pipeline #1650 passed
...@@ -16,7 +16,7 @@ rt = RT_Client.new(server: settings.rt[:server], ...@@ -16,7 +16,7 @@ rt = RT_Client.new(server: settings.rt[:server],
cookies: settings.rt[:cookies]) cookies: settings.rt[:cookies])
post '/' do # rubocop:disable Metrics/BlockLength post '/' do # rubocop:disable Metrics/BlockLength
if not settings.token.nil? unless settings.token.nil?
halt 403 unless request.env['HTTP_X_GITLAB_TOKEN'] == settings.token halt 403 unless request.env['HTTP_X_GITLAB_TOKEN'] == settings.token
end end
gitlab_event = request.env['HTTP_X_GITLAB_EVENT'] gitlab_event = request.env['HTTP_X_GITLAB_EVENT']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment