You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
case name_to_table(params["name"]) do
nil ->
send_resp(conn, :not_found, "")
table ->
...
dimensions =
params_list(params, "dimensions", table.default_dimensions(), table.dimensions())
...
end
triggers the following warnings:
warning: nil.default_dimensions/0 is undefined (module nil is not available or is yet to be defined)
│
27 │ params_list(params, "dimensions", table.default_dimensions(), table.dimensions())
│ ~
│
└─ lib/console_web/controllers/api/v1/report_controller.ex:27:51: ConsoleWeb.Api.V1.ReportController.show/2
warning: nil.dimensions/0 is undefined (module nil is not available or is yet to be defined)
│
27 │ params_list(params, "dimensions", table.default_dimensions(), table.dimensions())
│ ~
│
└─ lib/console_web/controllers/api/v1/report_controller.ex:27:79: ConsoleWeb.Api.V1.ReportController.show/2
Expected behavior
I expect no warnings since table cannot be nil.
The text was updated successfully, but these errors were encountered:
Elixir and Erlang/OTP versions
Operating system
MacOS 15.2
Current behavior
The following code:
triggers the following warnings:
Expected behavior
I expect no warnings since
table
cannot benil
.The text was updated successfully, but these errors were encountered: