summaryrefslogtreecommitdiff
path: root/docs/development/API
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2024-01-28 12:29:12 -0500
committerMark Felder <feld@feld.me>2024-01-28 15:52:09 -0500
commit9c8055d4b3eeed04e2fc27b69e1bd2b8bae11bb8 (patch)
tree6fcffafadc13d0d8f48c9f904f5d90646122ebf8 /docs/development/API
parent563aebd5ce8e713dec2cb7ce47dbc7fc04473266 (diff)
downloadpleroma-9c8055d4b3eeed04e2fc27b69e1bd2b8bae11bb8.tar.gz
pleroma-9c8055d4b3eeed04e2fc27b69e1bd2b8bae11bb8.zip
Pleroma.Web.PleromaAPI.MascotController: dialyzer errors
lib/pleroma/web/pleroma_api/controllers/mascot_controller.ex:25:no_return Function update/2 has no local return. lib/pleroma/web/pleroma_api/controllers/mascot_controller.ex:27:call The function call will not succeed. Pleroma.Web.ActivityPub.ActivityPub.upload(_file :: atom() | %{:content_type => _, _ => _}, [{:actor, <<_::56, _::size(8)>>}, ...]) :: :ok def a() do :ok end will never return since the 2nd arguments differ from the success typing arguments: (any(), [ {:activity_type | :description | :filters | :size_limit | :type | :uploader, atom() | binary() | [atom()] | non_neg_integer()} ]) lib/pleroma/web/pleroma_api/controllers/mascot_controller.ex:31:call The function call will not succeed. Phoenix.Controller.json( _conn :: %{ :assigns => %{:user => _, _ => _}, :body_params => %{:file => _, _ => _}, _ => _ }, _attachment :: any() ) breaks the contract (Plug.Conn.t(), term()) :: Plug.Conn.t() lib/pleroma/web/pleroma_api/controllers/mascot_controller.ex:34:call The function call will not succeed. Plug.Conn.put_status( _conn :: %{ :assigns => %{:user => _, _ => _}, :body_params => %{:file => _, _ => _}, _ => _ }, :unsupported_media_type ) breaks the contract (t(), status()) :: t() lib/pleroma/web/pleroma_api/controllers/mascot_controller.ex:34:call The function call will not succeed. Plug.Conn.put_status( _conn :: %{ :assigns => %{:user => _, _ => _}, :body_params => %{:file => _, _ => _}, _ => _ }, :unsupported_media_type ) breaks the contract (t(), status()) :: t() lib/pleroma/web/pleroma_api/controllers/mascot_controller.ex:38:unused_fun Function render_attachment/1 will never be called.
Diffstat (limited to 'docs/development/API')
0 files changed, 0 insertions, 0 deletions