Skip to content

Commit 61e4b11

Browse files
committed
simplify
1 parent a0563fa commit 61e4b11

File tree

1 file changed

+4
-4
lines changed
  • hll/dynamodb-mapper/dynamodb-mapper-schema-codegen/src/main/kotlin/aws/sdk/kotlin/hll/dynamodbmapper/codegen/annotations/rendering

1 file changed

+4
-4
lines changed

hll/dynamodb-mapper/dynamodb-mapper-schema-codegen/src/main/kotlin/aws/sdk/kotlin/hll/dynamodbmapper/codegen/annotations/rendering/SchemaRenderer.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,10 @@ internal class SchemaRenderer(
176176
?.qualifiedName
177177
?.asString()
178178

179-
if (attributeValueConverterFqn != null) {
180-
imports += ImportDirective(attributeValueConverterFqn)
181-
write("$attributeValueConverterFqn(),")
182-
} else {
179+
attributeValueConverterFqn?.let {
180+
imports += ImportDirective(it)
181+
write("$it(),")
182+
} ?: run {
183183
renderValueConverter(prop.type.resolve())
184184
write(",")
185185
}

0 commit comments

Comments
 (0)