diff options
author | Mark Felder <feld@feld.me> | 2024-01-29 17:42:39 -0500 |
---|---|---|
committer | Mark Felder <feld@feld.me> | 2024-01-29 18:28:49 -0500 |
commit | 3cb2807244887847f4511d3627d3cdeab6e4876c (patch) | |
tree | 3c999fed032c7cbda229f1c3cb2a540505bb705f | |
parent | a2664927762f9e34146830cc83940a4db2b071d2 (diff) | |
download | pleroma-3cb2807244887847f4511d3627d3cdeab6e4876c.tar.gz pleroma-3cb2807244887847f4511d3627d3cdeab6e4876c.zip |
Pleroma.Web.MastodonAPI.StatusView: dialyzer error
lib/pleroma/web/mastodon_api/views/status_view.ex:799:pattern_match_cov
The pattern
_, _
can never match, because previous clauses completely cover the type
%URI{
:authority => URI.authority(),
:fragment => nil | binary(),
:host => nil | binary(),
:path => nil | binary(),
:port => nil | char(),
:query => nil | binary(),
:scheme => nil | binary(),
:userinfo => nil | binary()
},
%URI{
:authority => URI.authority(),
:fragment => nil | binary(),
:host => nil | binary(),
:path => nil | binary(),
:port => nil | char(),
:query => nil | binary(),
:scheme => nil | binary(),
:userinfo => nil | binary()
}
.
-rw-r--r-- | lib/pleroma/web/mastodon_api/views/status_view.ex | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex index 0e2e604f5..6303e72ce 100644 --- a/lib/pleroma/web/mastodon_api/views/status_view.ex +++ b/lib/pleroma/web/mastodon_api/views/status_view.ex @@ -796,8 +796,6 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do URI.merge(page_url_data, image_url_data) |> to_string end - defp build_image_url(_, _), do: nil - defp get_source_text(%{"content" => content} = _source) do content end |