Skip to content

Commit e282bf3

Browse files
committed
kotlin things
1 parent 0a7f5a3 commit e282bf3

File tree

1 file changed

+4
-4
lines changed
  • airbyte-cdk/java/airbyte-cdk/typing-deduping/src/main/java/io/airbyte/integrations/base/destination/typing_deduping

1 file changed

+4
-4
lines changed

airbyte-cdk/java/airbyte-cdk/typing-deduping/src/main/java/io/airbyte/integrations/base/destination/typing_deduping/DV2OperationUtils.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ class DV2OperationUtils {
4848
sqlGenerator: SqlGenerator,
4949
destinationHandler: DestinationHandler,
5050
parsedCatalog: ParsedCatalog) {
51-
val rawSchema = parsedCatalog.streams.stream().map { stream: StreamConfig -> stream.id.rawNamespace }
52-
val finalSchema = parsedCatalog.streams.stream().map { stream: StreamConfig -> stream.id.finalNamespace }
51+
val rawSchema = parsedCatalog.streams.stream().map { it.id.rawNamespace }
52+
val finalSchema = parsedCatalog.streams.stream().map { it.id.finalNamespace }
5353
val createAllSchemasSql = Streams.concat<String>(rawSchema, finalSchema)
54-
.filter { obj: String? -> Objects.nonNull(obj) }
54+
.filter(Objects::nonNull)
5555
.distinct()
56-
.map { schema: String? -> sqlGenerator.createSchema(schema) }
56+
.map(sqlGenerator::createSchema)
5757
.toList()
5858
destinationHandler.execute(Sql.concat(createAllSchemasSql))
5959
}

0 commit comments

Comments
 (0)