Skip to content

Commit da74532

Browse files
author
David Motsonashvili
committed
format
1 parent d7ff3d4 commit da74532

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

firebase-ai-ksp-processor/src/main/kotlin/com/google/firebase/ai/ksp/SchemaSymbolProcessor.kt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,7 @@ public class SchemaSymbolProcessor(
123123
val baseKdoc = extractBaseKdoc(kdocString)
124124
val propertyDocs = extractPropertyKdocs(kdocString)
125125
val guideClassAnnotation =
126-
type.annotations.firstOrNull() {
127-
it.shortName.getShortName() == "Guide"
128-
}
126+
type.annotations.firstOrNull() { it.shortName.getShortName() == "Guide" }
129127
val description =
130128
getDescriptionFromAnnotations(guideAnnotation, guideClassAnnotation, description, baseKdoc)
131129
val minimum = getDoubleFromAnnotation(guideAnnotation, "minimum")
@@ -180,9 +178,7 @@ public class SchemaSymbolProcessor(
180178
description = propertyDocs[propertyName],
181179
name = propertyName,
182180
guideAnnotation =
183-
property.annotations.firstOrNull() {
184-
it.shortName.getShortName() == "Guide"
185-
},
181+
property.annotations.firstOrNull() { it.shortName.getShortName() == "Guide" },
186182
)
187183
}
188184
properties.entries.forEach {

0 commit comments

Comments
 (0)