commit: b3214be32f83541626b198b86ee065b92862f4cf
parent 03db495e1d88f34bef8d556b0f88806c3260d403
Author: Lain Soykaf <lain@lain.com>
Date: Tue, 28 Nov 2023 12:33:54 +0400
AnayzeMetadata: Fix error case that would never match
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/pleroma/upload/filter/analyze_metadata.ex b/lib/pleroma/upload/filter/analyze_metadata.ex
@@ -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