diff --git a/lib/pleroma/safe_zip.ex b/lib/pleroma/safe_zip.ex index 25fe434d6..ece18e645 100644 --- 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}"}}