Why "default arguments in my_func/2 are never used"?

I have this:

  defp my_func(arg1, params \\ []) do
    %{"method" => arg1, "params" => params}
  end

It warns me that default arguments in my_func/2 are never used. But they’re used!

Did you use both my_func/1 and my_func/2? If you always call it like my_func(method, params), then the default argument params \\ [] is never used indeed.