Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos in variables #453

Merged
merged 1 commit into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/phoenix/live_dashboard/reingold_tilford.ex
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ defmodule Phoenix.LiveDashboard.ReingoldTilford do
def lines(%{children: children} = node) do
lines_to_children = lines_to_children(node)

aditional_lines =
additional_lines =
cond do
[node] == children ->
[child | _] = children
Expand All @@ -261,7 +261,7 @@ defmodule Phoenix.LiveDashboard.ReingoldTilford do
end

children_lines = Enum.flat_map(children, &lines/1)
lines_to_children ++ aditional_lines ++ children_lines
lines_to_children ++ additional_lines ++ children_lines
end

defp line_from_parent(node, child) do
Expand Down
10 changes: 5 additions & 5 deletions lib/phoenix/live_dashboard/system_info.ex
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ defmodule Phoenix.LiveDashboard.SystemInfo do

@doc false
def processes_callback(search, sort_by, sort_dir, limit, prev_reductions) do
multiplier = sort_dir_multipler(sort_dir)
multiplier = sort_dir_multiplier(sort_dir)

processes =
for pid <- Process.list(),
Expand Down Expand Up @@ -526,7 +526,7 @@ defmodule Phoenix.LiveDashboard.SystemInfo do

@doc false
def ports_callback(search, sort_by, sort_dir, limit) do
multiplier = sort_dir_multipler(sort_dir)
multiplier = sort_dir_multiplier(sort_dir)

ports =
for port <- Port.list(), port_info = port_info(port), show_port?(port_info, search) do
Expand Down Expand Up @@ -574,7 +574,7 @@ defmodule Phoenix.LiveDashboard.SystemInfo do
## ETS callbacks

def ets_callback(search, sort_by, sort_dir, limit) do
multiplier = sort_dir_multipler(sort_dir)
multiplier = sort_dir_multiplier(sort_dir)

tables =
for ref <- :ets.all(), info = ets_info(ref), show_ets?(info, search) do
Expand Down Expand Up @@ -788,8 +788,8 @@ defmodule Phoenix.LiveDashboard.SystemInfo do
end
end

defp sort_dir_multipler(:asc), do: 1
defp sort_dir_multipler(:desc), do: -1
defp sort_dir_multiplier(:asc), do: 1
defp sort_dir_multiplier(:desc), do: -1

defp pid_or_port_details(pid) when is_pid(pid), do: to_process_details(pid)
defp pid_or_port_details(name) when is_atom(name), do: to_process_details(name)
Expand Down
Loading