Skip to content

Commit 2613e17

Browse files
author
Fahad Zubair
committed
Lint format
1 parent 68328d9 commit 2613e17

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/parse/EventStreamUnmarshallerGenerator.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,10 @@ class EventStreamUnmarshallerGenerator(
246246
// Handle implicit payload members: members with neither @eventPayload nor @eventHeader.
247247
// Per the Smithy spec, these are collectively serialized as a protocol-specific document
248248
// in the message body.
249-
val implicitMembers = unionStruct.members().filter {
250-
!it.hasTrait<EventPayloadTrait>() && !it.hasTrait<EventHeaderTrait>()
251-
}
249+
val implicitMembers =
250+
unionStruct.members().filter {
251+
!it.hasTrait<EventPayloadTrait>() && !it.hasTrait<EventHeaderTrait>()
252+
}
252253
if (implicitMembers.isNotEmpty() && payloadMember == null) {
253254
val parser = protocol.structuredDataParser().errorParser(unionStruct)
254255
if (parser != null) {

0 commit comments

Comments
 (0)