Skip to content

Commit

Permalink
Minor fixes found by Dialyzer (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
probably-not authored Jan 27, 2025
1 parent 2f18363 commit 146b934
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions lib/flame/code_sync.ex
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ defmodule FLAME.CodeSync do
log_verbose("packaged size: #{File.stat!(out_path).size / (1024 * 1024)}mb")
end

# TODO: Change to File.stream!(out_path, code.chunk_size) once we require Elixir v1.16+
File.stream!(out_path, [], code.chunk_size)
end

Expand Down
3 changes: 0 additions & 3 deletions lib/flame/pool.ex
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,6 @@ defmodule FLAME.Pool do
if Keyword.fetch!(place_opts, :link), do: Process.link(child_pid)
{:cancel, {:replace, [child_pid]}, result}

:ignore ->
{:cancel, :ok, :ignore}

{:error, _reason} = result ->
{:cancel, :ok, result}
end
Expand Down

0 comments on commit 146b934

Please sign in to comment.