Skip to content

Commit 146b934

Browse files
authored
Minor fixes found by Dialyzer (#74)
1 parent 2f18363 commit 146b934

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lib/flame/code_sync.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ defmodule FLAME.CodeSync do
193193
log_verbose("packaged size: #{File.stat!(out_path).size / (1024 * 1024)}mb")
194194
end
195195

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

lib/flame/pool.ex

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,6 @@ defmodule FLAME.Pool do
306306
if Keyword.fetch!(place_opts, :link), do: Process.link(child_pid)
307307
{:cancel, {:replace, [child_pid]}, result}
308308

309-
:ignore ->
310-
{:cancel, :ok, :ignore}
311-
312309
{:error, _reason} = result ->
313310
{:cancel, :ok, result}
314311
end

0 commit comments

Comments
 (0)