chore: credo fix (#1347)

This commit is contained in:
Jonatan Männchen 2024-07-26 00:08:32 +02:00 committed by GitHub
parent de2b3d0d4e
commit bda0c0e0da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,6 @@
defmodule Status do defmodule Status do
@moduledoc false
use Ash.Type.Enum, values: [:open, :Closed, :NeverHappened, :Always_Was] use Ash.Type.Enum, values: [:open, :Closed, :NeverHappened, :Always_Was]
def match("never_happened"), do: {:ok, :NeverHappened} def match("never_happened"), do: {:ok, :NeverHappened}
@ -6,6 +8,8 @@ defmodule Status do
end end
defmodule DescriptiveEnum do defmodule DescriptiveEnum do
@moduledoc false
use Ash.Type.Enum, use Ash.Type.Enum,
values: [ values: [
{:foo, "Clearly a foo"}, {:foo, "Clearly a foo"},
@ -17,9 +21,13 @@ defmodule DescriptiveEnum do
end end
defmodule StringEnum do defmodule StringEnum do
@moduledoc false
use Ash.Type.Enum, values: ["foo", "bar", "baz"] use Ash.Type.Enum, values: ["foo", "bar", "baz"]
end end
defmodule MixedEnum do defmodule MixedEnum do
@moduledoc false
use Ash.Type.Enum, values: [:foo, "bar", "baz"] use Ash.Type.Enum, values: [:foo, "bar", "baz"]
end end