Fix rubocop offenses

This commit is contained in:
Sebastian Serth
2023-01-11 23:50:22 +01:00
committed by Sebastian Serth
parent 6486b0d658
commit 87771b905a

View File

@ -351,7 +351,7 @@ class ExercisesController < ApplicationController
lti_json = lti_parameters.lti_parameters['launch_presentation_return_url'] lti_json = lti_parameters.lti_parameters['launch_presentation_return_url']
@course_token = @course_token =
if lti_json.present? && (match = lti_json.match(%r{^.*courses/([a-z0-9\-]+)/sections})) if lti_json.present? && (match = lti_json.match(%r{^.*courses/([a-z0-9-]+)/sections}))
match.captures.first match.captures.first
else else
'' ''