AnayzeMetadata: Fix error case that would never match

This commit is contained in:
Lain Soykaf 2023-11-28 12:33:54 +04:00
parent 03db495e1d
commit b3214be32f

View File

@ -78,7 +78,7 @@ defmodule Pleroma.Upload.Filter.AnalyzeMetadata do
%{width: width, height: height} %{width: width, height: height}
else else
nil -> {:error, {:ffprobe, :command_not_found}} nil -> {:error, {:ffprobe, :command_not_found}}
{:error, _} = error -> error error -> {:error, error}
end end
end end