Skip to content

Commit

Permalink
Simplify code (#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmach authored Jun 20, 2024
1 parent 7d9ed76 commit cc87210
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/kino/process.ex
Original file line number Diff line number Diff line change
Expand Up @@ -447,10 +447,8 @@ defmodule Kino.Process do
end

defp format_for_mermaid_participant_alias(pid, process_label) do
pid_text = :erlang.pid_to_list(pid) |> List.to_string()

label = process_label |> inspect() |> String.replace(~s{"}, "")
"#{label}<br/>#{pid_text}"
"#{label}<br/>#{:erlang.pid_to_list(pid)}"
end

defp maybe_add_participant({participants, idx}, pid) when is_pid(pid) do
Expand Down

0 comments on commit cc87210

Please sign in to comment.