Skip to content

Commit 834c5dc

Browse files
authored
Apply suggestions from code review
1 parent a232517 commit 834c5dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/test_dispatch/form.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ defmodule TestDispatch.Form do
1010
do: find_input_fields(form, entity_tuple)
1111

1212
def find_inputs(form, {:button_text, button_text}) do
13-
button = find_buttons(form, button_text)
13+
button = find_button(form, button_text)
1414

1515
if button,
1616
do: [button | find_default_inputs(form)],
@@ -29,7 +29,7 @@ defmodule TestDispatch.Form do
2929
Enum.uniq(fields ++ selects ++ textareas ++ radio_buttons)
3030
end
3131

32-
def find_buttons(form, button_text),
32+
def find_button(form, button_text),
3333
do:
3434
find_submit_input(form, button_text) ||
3535
find_submit_button(form, button_text)

0 commit comments

Comments
 (0)