Skip to content

Commit 5620495

Browse files
committed
Minor formatting changes
1 parent 1de346f commit 5620495

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

app/components/result_component.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ def name
2020
end
2121

2222
def edit_name
23-
if render_edit_link?
24-
link_to edit_admin_result_path(result) do
25-
helpers.inline_svg_tag "pencil.svg"
26-
end
23+
return unless render_edit_link?
24+
25+
link_to edit_admin_result_path(result) do
26+
helpers.inline_svg_tag "pencil.svg"
2727
end
2828
end
2929

app/components/results_table_component.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ def initialize(first_result:)
88
end
99

1010
def headers
11-
class_names({
12-
"position" => true,
13-
"bib" => @first_result&.bib.present?,
14-
"name" => true,
15-
"club" => true,
16-
"county" => @first_result&.county.present?,
17-
"time" => @first_result&.seconds.nil?
18-
}).split
11+
class_names({
12+
"position" => true,
13+
"bib" => @first_result&.bib.present?,
14+
"name" => true,
15+
"club" => true,
16+
"county" => @first_result&.county.present?,
17+
"time" => @first_result&.seconds.nil?
18+
}).split
1919
end
2020
end

0 commit comments

Comments
 (0)