Skip to content

Commit f15cd75

Browse files
committed
fix credo complaint
1 parent 17beae4 commit f15cd75

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/live_select/component.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,10 +499,10 @@ defmodule LiveSelect.Component do
499499
hide_dropdown: not quick_tags_mode?(socket)
500500
)
501501
|> then(
502-
&unless keep_options_on_select?(&1) do
503-
assign(&1, %{options: [], current_text: ""})
504-
else
502+
&if keep_options_on_select?(&1) do
505503
&1
504+
else
505+
assign(&1, %{options: [], current_text: ""})
506506
end
507507
)
508508

0 commit comments

Comments
 (0)