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: Benjamin Milde <[email protected]>
  • Loading branch information
onno-vos-dev and LostKobrakai committed Mar 14, 2024
1 parent 79af0c2 commit 44a1cc4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/aws_codegen/post_service.ex
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,7 @@ defmodule AWS.CodeGen.PostService do
end

defp is_input?(shape) do
if Map.has_key?(shape, "traits") do
Map.has_key?(shape["traits"], "smithy.api#input")
else
true
end
!Map.has_key?(shape, "traits") or Map.has_key?(shape["traits"], "smithy.api#input")
end

end

0 comments on commit 44a1cc4

Please sign in to comment.