Skip to content

Commit 9858e7d

Browse files
committed
Attempt to fix CodeQL parse warninings
1 parent a1870c5 commit 9858e7d

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

app/views/components/code_block/container.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ def initialize(language: "plain", **options)
1010
end
1111

1212
def view_template(&)
13-
div(
14-
class: class_names("code-wrapper", "highlight", "language-#{language}", *classes),
15-
**options,
16-
&
17-
)
13+
div(class: class_names("code-wrapper", "highlight", "language-#{language}", *classes), **options, &)
1814
end
1915
end

app/views/components/layouts/front_door_form.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@ def form_layout(&block)
3030
end
3131

3232
def form_with(**, &)
33-
super(
34-
class: "grid grid-row-tight",
35-
**,
36-
&
37-
)
33+
super(class: "grid grid-row-tight", **, &)
3834
end
3935

4036
def form_label(form, *args, **opts)

0 commit comments

Comments
 (0)