Skip to content

Commit

Permalink
Fix dialyzer error in Mix.Tasks.Absinthe.Schema.Json
Browse files Browse the repository at this point in the history
Remove elze part of with expression in generate_schema. Dialyzer
saw that Absinthe.Schema.introspect will only return
{:error, String.t()} if there is an error
  • Loading branch information
bryanjos committed Jun 14, 2024
1 parent c7ba938 commit 7f97913
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/mix/tasks/absinthe.schema.json.ex
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,6 @@ defmodule Mix.Tasks.Absinthe.Schema.Json do
with {:ok, result} <- Absinthe.Schema.introspect(schema) do
content = json_codec.encode!(result, pretty: pretty)
{:ok, content}
else
{:error, reason} -> {:error, reason}
error -> {:error, error}
end
end

Expand Down

0 comments on commit 7f97913

Please sign in to comment.