pleroma/config
Mark Felder cfc8d7aade IPFS uploader: dialyzer fixes
lib/pleroma/uploaders/ipfs.ex:43:no_return
Function put_file/1 has no local return.
________________________________________________________________________________
lib/pleroma/uploaders/ipfs.ex:49:call
The function call will not succeed.

Pleroma.HTTP.post(
  binary(),
  _mp :: %Tesla.Multipart{
    :boundary => binary(),
    :content_type_params => [binary()],
    :parts => [
      %Tesla.Multipart.Part{
        :body => binary(),
        :dispositions => [any()],
        :headers => [any()]
      },
      ...
    ]
  },
  [],
  [{:params, [{:"cid-version", <<49>>}]}]
)

will never return since the success typing is:
(binary(), binary(), [{binary(), binary()}], Keyword.t()) ::
  {:error, _}
  | {:ok,
     %Tesla.Env{
       :__client__ => %Tesla.Client{
         :adapter => nil | {_, _} | {_, _, _},
         :fun => _,
         :post => [any()],
         :pre => [any()]
       },
       :__module__ => atom(),
       :body => _,
       :headers => [{_, _}],
       :method => :delete | :get | :head | :options | :patch | :post | :put | :trace,
       :opts => [{_, _}],
       :query => [{_, _}],
       :status => nil | integer(),
       :url => binary()
     }}

and the contract is
(Pleroma.HTTP.Request.url(), String.t(), Pleroma.HTTP.Request.headers(), :elixir.keyword()) ::
  {:ok, Tesla.Env.t()} | {:error, any()}
2024-05-30 15:14:27 -04:00
..
benchmark.exs Use config to control streamer registry 2024-01-20 18:51:20 -05:00
config.exs IPFS uploader: dialyzer fixes 2024-05-30 15:14:27 -04:00
description.exs Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into pleroma-secure-mode 2024-05-28 12:31:12 +04:00
dev.exs Show Logger metadata in dev 2024-03-19 12:15:10 -04:00
docker.exs allow custom db port 2022-11-11 12:22:21 -03:00
dokku.exs Switch from the deprecated "use Mix.config" to "import Config" 2021-05-20 14:02:58 -05:00
emoji.txt Load an emoji.txt specific to the test env 2021-02-03 16:40:59 -06:00
prod.exs Switch from the deprecated "use Mix.config" to "import Config" 2021-05-20 14:02:58 -05:00
test.exs HTTPSignaturePlugTest: Rewrite to use mox. 2024-05-28 14:00:25 +04:00