mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +12:00
chore: comment out more unnecessary code
This commit is contained in:
parent
cb8fc298ae
commit
b605232f7e
1 changed files with 11 additions and 12 deletions
|
@ -1852,21 +1852,20 @@ defmodule Ash.Filter do
|
|||
|> List.wrap()
|
||||
|> List.flatten()
|
||||
|
||||
nested
|
||||
|> Enum.map(fn
|
||||
{nested_path, _ref} ->
|
||||
nested_path
|
||||
|
||||
{nested_path} ->
|
||||
nested_path
|
||||
end)
|
||||
|> Enum.find(fn path ->
|
||||
not to_one_path?(path, resource)
|
||||
end)
|
||||
|
||||
# This validation needs to be added back in at some point
|
||||
# it was removed because we currently can't tell the difference between relationship paths
|
||||
# that appear inside of the path to `exists`, i.e `exists(to_many, ....)`.
|
||||
# nested
|
||||
# |> Enum.map(fn
|
||||
# {nested_path, _ref} ->
|
||||
# nested_path
|
||||
|
||||
# {nested_path} ->
|
||||
# nested_path
|
||||
# end)
|
||||
# |> Enum.find(fn path ->
|
||||
# not to_one_path?(path, resource)
|
||||
# end)
|
||||
# |> case do
|
||||
# nil ->
|
||||
# :ok
|
||||
|
|
Loading…
Reference in a new issue