Skip to content

Commit b60738f

Browse files
MrSerthdependabot[bot]
authored andcommitted
Fix Rubocop offenses
1 parent 4cb04b5 commit b60738f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/helpers/application_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ def render_markdown(markdown)
6363
).to_html.strip
6464
end
6565

66-
def row(options = {}, &block)
66+
def row(options = {}, &)
6767
tag.div(class: 'attribute-row row') do
68-
label_column(options[:label]) + value_column(options[:value], &block)
68+
label_column(options[:label]) + value_column(options[:value], &)
6969
end
7070
end
7171

app/models/submission.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@ def calculate_score(requesting_user)
168168

169169
# @raise [Runner::Error] if the code could not be run due to a failure with the runner.
170170
# See the specific type and message for more details.
171-
def run(file, &block)
171+
def run(file, &)
172172
run_command = command_for execution_environment.run_command, file.filepath
173173
durations = {}
174174
prepared_runner do |runner, waiting_duration|
175-
durations[:execution_duration] = runner.attach_to_execution(run_command, exclusive: false, &block)
175+
durations[:execution_duration] = runner.attach_to_execution(run_command, exclusive: false, &)
176176
durations[:waiting_duration] = waiting_duration
177177
rescue Runner::Error => e
178178
e.waiting_duration = waiting_duration

0 commit comments

Comments
 (0)