Apply automatic rubocop fixes

This commit is contained in:
Sebastian Serth
2021-06-25 14:41:49 +02:00
parent 03b46cefb0
commit e7cf4ef5db
6 changed files with 42 additions and 40 deletions

View File

@ -566,7 +566,7 @@ working_time_accumulated: working_time_accumulated})
end
def redirect_after_submit
Rails.logger.debug("Redirecting user with score:s #{@submission.normalized_score}")
Rails.logger.debug { "Redirecting user with score:s #{@submission.normalized_score}" }
if @submission.normalized_score.to_d == 1.0.to_d
# if user is external and has an own rfc, redirect to it and message him to clean up and accept the answer. (we need to check that the user is external,
# otherwise an internal user could be shown a false rfc here, since current_user.id is polymorphic, but only makes sense for external users when used with rfcs.)

View File

@ -197,11 +197,11 @@ module_name: File.basename(filename, File.extname(filename)).underscore}
@docker_client.kill_container(result[:container])
else
socket.send data
Rails.logger.debug("Sent the received client data to docker:#{data}")
Rails.logger.debug { "Sent the received client data to docker:#{data}" }
end
rescue JSON::ParserError
socket.send data
Rails.logger.debug("Rescued parsing error, sent the received client data to docker:#{data}")
Rails.logger.debug { "Rescued parsing error, sent the received client data to docker:#{data}" }
Sentry.set_extras(data: data)
end
end