Skip to content

Commit

Permalink
fix compile error on empty eventstream event (#2934)
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyMusatkin authored Apr 22, 2024
1 parent 8a621d7 commit 3a8b105
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ namespace Model
#elseif($entry.value.shape.eventPayloadType.equals("structure") || $entry.value.shape.eventPayloadType.equals("list"))
msg.InsertEventHeader(":content-type", Aws::String("application/json"));
msg.WriteEventPayload(value.Jsonize().View().WriteCompact());
#else
AWS_UNREFERENCED_PARAM(value);
#end
#else##if($entry.value.shape.eventPayloadType.equals("blob"))
if(!value.Get$CppViewHelper.capitalizeFirstChar(${entry.value.shape.eventPayloadMemberName})().empty())
Expand Down

0 comments on commit 3a8b105

Please sign in to comment.