Skip to content

Commit

Permalink
Remove warning about unreach branch
Browse files Browse the repository at this point in the history
  • Loading branch information
philss committed May 24, 2022
1 parent 8dee155 commit 55c6888
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/rustler_precompiled.ex
Original file line number Diff line number Diff line change
Expand Up @@ -673,8 +673,11 @@ defmodule RustlerPrecompiled do
}
]
else
{:file, error} ->
raise "could not write downloaded file to disk. Reason: #{inspect(error)}"

{context, result} ->
if ignore_unavailable? && context in [:download, :download_result] do
if ignore_unavailable? do
Logger.debug(
"Skip an unavailable NIF artifact. " <>
"Context: #{inspect(context)}. Reason: #{inspect(result)}"
Expand Down

0 comments on commit 55c6888

Please sign in to comment.