Skip to content

Commit

Permalink
Update lib/aws_codegen/post_service.ex
Browse files Browse the repository at this point in the history
Co-authored-by: Philip Sampaio <[email protected]>
  • Loading branch information
onno-vos-dev and philss authored Mar 13, 2024
1 parent a282384 commit 3e36d0a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/aws_codegen/post_service.ex
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ defmodule AWS.CodeGen.PostService do
defp collect_shapes(_language, api_spec) do
api_spec["shapes"]
|> Enum.sort(fn {name_a, _}, {name_b, _} -> name_a < name_b end)
|> Enum.map(fn {name, shape} ->
|> Map.new(fn {name, shape} ->
{name,
%Shape{
name: name,
Expand All @@ -180,7 +180,6 @@ defmodule AWS.CodeGen.PostService do
is_input: is_input?(shape)
}}
end)
|> Enum.into(%{})
end

defp is_input?(shape) do
Expand Down

0 comments on commit 3e36d0a

Please sign in to comment.