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}
else
nil -> {:error, {:ffprobe, :command_not_found}}
{:error, _} = error -> error
error -> {:error, error}
end
end