Skip to content

Commit

Permalink
Update lib/aws_codegen/util.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 b8e80dd commit 264b090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/aws_codegen/util.ex
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ defmodule AWS.CodeGen.Util do
end

def function_argument_type(:elixir, action) do
case Map.get(action.input, "target") do
case Map.fetch!(action.input, "target") do
"smithy.api#Unit" -> "%{}"
type ->
"#{AWS.CodeGen.Name.to_snake_case(String.replace(type, ~r/com\.amazonaws\.[^#]+#/, ""))}()"
Expand Down

0 comments on commit 264b090

Please sign in to comment.