Skip to content

Commit 7f97913

Browse files
committed
Fix dialyzer error in Mix.Tasks.Absinthe.Schema.Json
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
1 parent c7ba938 commit 7f97913

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/mix/tasks/absinthe.schema.json.ex

-3
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@ defmodule Mix.Tasks.Absinthe.Schema.Json do
101101
with {:ok, result} <- Absinthe.Schema.introspect(schema) do
102102
content = json_codec.encode!(result, pretty: pretty)
103103
{:ok, content}
104-
else
105-
{:error, reason} -> {:error, reason}
106-
error -> {:error, error}
107104
end
108105
end
109106

0 commit comments

Comments
 (0)