logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/
commit: 28146ee7d258a70366bd16e5e099e5c1f4adc25b
parent e0104132a7fa5f4a913e33e7f654b6cd64df0107
Author: Mark Felder <feld@feld.me>
Date:   Tue, 22 Jul 2025 11:50:38 -0700

Fix dialyzer error in safe_zip: Remove impossible pattern match for {:get_type, _e}

Diffstat:

Mlib/pleroma/safe_zip.ex4----
1 file changed, 0 insertions(+), 4 deletions(-)

diff --git a/lib/pleroma/safe_zip.ex b/lib/pleroma/safe_zip.ex @@ -56,10 +56,6 @@ defmodule Pleroma.SafeZip do {_, true} <- {:safe_path, safe_path?(path)} do {:cont, {:ok, maybe_add_file(type, path, fl)}} else - {:get_type, e} -> - {:halt, - {:error, "Couldn't determine file type of ZIP entry at #{path} (#{inspect(e)})"}} - {:type, _} -> {:halt, {:error, "Potentially unsafe file type in ZIP at: #{path}"}}